mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- For World Tour allow falling back on the classic sounds if the Oggs cannot be found
This commit is contained in:
parent
cddd5d3a4c
commit
19b5e2464e
2 changed files with 9 additions and 0 deletions
|
@ -181,6 +181,14 @@ int S_DefineSound(unsigned index, const char *filename, int minpitch, int maxpit
|
|||
fn.Substitute("\\\\", "\\");
|
||||
FixPathSeperator(fn);
|
||||
sfx->lumpnum = S_LookupSound(fn);
|
||||
// For World Tour allow falling back on the classic sounds if the Oggs cannot be found
|
||||
if (isWorldTour() && sfx->lumpnum == -1)
|
||||
{
|
||||
fn.ToLower();
|
||||
fn.Substitute("sound/", "");
|
||||
fn.Substitute(".ogg", ".voc");
|
||||
sfx->lumpnum = S_LookupSound(fn);
|
||||
}
|
||||
sndinf[kPitchStart] = clamp(minpitch, INT16_MIN, INT16_MAX);
|
||||
sndinf[kPitchEnd] = clamp(maxpitch, INT16_MIN, INT16_MAX);
|
||||
sndinf[kPriority] = priority & 255;
|
||||
|
|
|
@ -675,6 +675,7 @@ Timidity++,ADVSNDMNU_TIMIDITY,,,,,,,,,,,,,,,,,,,,,,
|
|||
Sound enabled,SNDMNU_SNDENABLED,,,,,Sound aktiv,,,,,,,,,,,,,,,,,
|
||||
Music enabled,SNDMNU_MUSENABLED,,,,,Musik aktiv,,,,,,,,,,,,,,,,,
|
||||
CD Music Emulation,SNDMNU_CDEMU,,,,,CD-Musik-Emulation,,,,,,,,,,,,,,,,,
|
||||
Play original Sounds,SNDMNU_WTSOUND,,,,,Original-Soundeffekte spielen,,,,,,,,,,,,,,,,,
|
||||
Play original MIDI music,SNDMNU_WTMUSIC,,,,,Original-MIDI-Musik spielen,,,,,,,,,,,,,,,,,
|
||||
Sound Ambience,SNDMNU_AMBIENCE,,,,,Umgebungsgeräusche,,,,,,,,,,,,,,,,,
|
||||
"Player Speech
|
||||
|
|
|
Loading…
Reference in a new issue