mirror of
https://github.com/mwpenny/portal64-still-alive.git
synced 2024-10-20 10:37:37 -04:00
translation mapping for all sounds (fix #405)
This commit is contained in:
parent
9d07965582
commit
92ef7a74dc
|
@ -198,7 +198,6 @@ void cutsceneRunnerStartStep(struct CutsceneRunner* runner) {
|
|||
break;
|
||||
case CutsceneStepTypeQueueSound:
|
||||
{
|
||||
step->queueSound.soundId = mapLocaleSound(step->queueSound.soundId);
|
||||
cutsceneQueueSoundInChannel(step->queueSound.soundId, step->queueSound.volume * (1.0f / 255.0f), step->queueSound.channel, step->queueSound.subtitleId);
|
||||
break;
|
||||
}
|
||||
|
@ -709,6 +708,8 @@ void cutsceneSerializeRead(struct Serializer* serializer) {
|
|||
}
|
||||
|
||||
void cutsceneQueueSoundInChannel(int soundId, float volume, int channel, int subtitleId) {
|
||||
soundId = mapLocaleSound(soundId);
|
||||
|
||||
if (!gCutsceneSoundQueues[channel] && !soundPlayerIsPlaying(gCutsceneCurrentSound[channel]) && channel == CH_GLADOS) {
|
||||
cutsceneQueueSound(soundsIntercom[0], volume, channel, subtitleId);
|
||||
}
|
||||
|
@ -725,4 +726,4 @@ int cutsceneIsSoundQueued(){
|
|||
}
|
||||
}
|
||||
return soundQueued;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue