hedgewars/uSound.pas
changeset 14840 fba15e2f5e5b
parent 14703 204fb862d0e4
child 14841 183677a07c8d
equal deleted inserted replaced
14839:b7c813dd807d 14840:fba15e2f5e5b
   245             (FileName:             'Droplet1.ogg'; Path: ptCurrTheme; AltPath: ptSounds),// sndDroplet1
   245             (FileName:             'Droplet1.ogg'; Path: ptCurrTheme; AltPath: ptSounds),// sndDroplet1
   246             (FileName:             'Droplet2.ogg'; Path: ptCurrTheme; AltPath: ptSounds),// sndDroplet2
   246             (FileName:             'Droplet2.ogg'; Path: ptCurrTheme; AltPath: ptSounds),// sndDroplet2
   247             (FileName:             'Droplet3.ogg'; Path: ptCurrTheme; AltPath: ptSounds),// sndDroplet3
   247             (FileName:             'Droplet3.ogg'; Path: ptCurrTheme; AltPath: ptSounds),// sndDroplet3
   248             (FileName:                  'egg.ogg'; Path: ptSounds; AltPath: ptNone),// sndEggBreak
   248             (FileName:                  'egg.ogg'; Path: ptSounds; AltPath: ptNone),// sndEggBreak
   249             (FileName:             'drillgun.ogg'; Path: ptSounds; AltPath: ptNone),// sndDrillRocket
   249             (FileName:             'drillgun.ogg'; Path: ptSounds; AltPath: ptNone),// sndDrillRocket
   250             (FileName:          'PoisonCough.ogg'; Path: ptVoices; AltPath: ptNone),// sndPoisonCough
   250             (FileName:          'PoisonCough.ogg'; Path: ptVoices; AltPath: ptDefaultVoice),// sndPoisonCough
   251             (FileName:           'PoisonMoan.ogg'; Path: ptVoices; AltPath: ptNone),// sndPoisonMoan
   251             (FileName:           'PoisonMoan.ogg'; Path: ptVoices; AltPath: ptDefaultVoice),// sndPoisonMoan
   252             (FileName:             'BirdyLay.ogg'; Path: ptSounds; AltPath: ptNone),// sndBirdyLay
   252             (FileName:             'BirdyLay.ogg'; Path: ptSounds; AltPath: ptNone),// sndBirdyLay
   253             (FileName:              'Whistle.ogg'; Path: ptSounds; AltPath: ptNone),// sndWhistle
   253             (FileName:              'Whistle.ogg'; Path: ptSounds; AltPath: ptNone),// sndWhistle
   254             (FileName:             'beewater.ogg'; Path: ptSounds; AltPath: ptNone),// sndBeeWater
   254             (FileName:             'beewater.ogg'; Path: ptSounds; AltPath: ptNone),// sndBeeWater
   255             (FileName:                   '1C.ogg'; Path: ptSounds; AltPath: ptNone),// sndPiano0
   255             (FileName:                   '1C.ogg'; Path: ptSounds; AltPath: ptNone),// sndPiano0
   256             (FileName:                   '2D.ogg'; Path: ptSounds; AltPath: ptNone),// sndPiano1
   256             (FileName:                   '2D.ogg'; Path: ptSounds; AltPath: ptNone),// sndPiano1
   588             WriteToConsole(msgLoading + s + ' ');
   588             WriteToConsole(msgLoading + s + ' ');
   589             rwops := rwopsOpenRead(s);
   589             rwops := rwopsOpenRead(s);
   590 
   590 
   591             if rwops = nil then
   591             if rwops = nil then
   592                 begin
   592                 begin
   593                 s:= cPathz[Soundz[snd].AltPath] + '/' + voicepack^.name + '/' + Soundz[snd].FileName;
   593                 s:= cPathz[Soundz[snd].AltPath] + '/' + Soundz[snd].FileName;
   594                 WriteToConsole(msgLoading + s + ' ... ');
   594                 WriteToConsole(msgLoading + s + ' ... ');
   595                 rwops := rwopsOpenRead(s);
   595                 rwops := rwopsOpenRead(s);
   596                 end;
   596                 end;
   597             voicepack^.chunks[snd]:= Mix_LoadWAV_RW(rwops, 1);
   597             voicepack^.chunks[snd]:= Mix_LoadWAV_RW(rwops, 1);
   598 
   598