hedgewars/uSound.pas
changeset 12618 2d68c113fc8d
parent 12612 2ffdee246adc
child 12621 d972b31f8881
equal deleted inserted replaced
12617:bcd679240cd2 12618:2d68c113fc8d
   457             WriteToConsole(msgLoading + s + ' ');
   457             WriteToConsole(msgLoading + s + ' ');
   458             rwops := rwopsOpenRead(s);
   458             rwops := rwopsOpenRead(s);
   459 
   459 
   460             if rwops = nil then
   460             if rwops = nil then
   461                 begin
   461                 begin
   462                 s:= cPathz[Soundz[snd].AltPath] + '/' + voicepack^.name + '/' + Soundz[snd].FileName;
   462                 s:= cPathz[Soundz[snd].AltPath] + '/' + Soundz[snd].FileName;
   463                 WriteToConsole(msgLoading + s + ' ... ');
   463                 WriteToConsole(msgLoading + s + ' ... ');
   464                 rwops := rwopsOpenRead(s);
   464                 rwops := rwopsOpenRead(s);
   465                 end;
   465                 end;
   466 
   466 
   467             defVoicepack^.chunks[snd]:= Mix_LoadWAV_RW(rwops, 1);
   467             defVoicepack^.chunks[snd]:= Mix_LoadWAV_RW(rwops, 1);