hedgewars/uSound.pas
changeset 1777 88674c291331
parent 1712 f5b916de40f0
child 2171 8208946331ba
equal deleted inserted replaced
1776:dd5648e250e4 1777:88674c291331
    75 if isSoundEnabled then WriteLnToConsole(msgOK)
    75 if isSoundEnabled then WriteLnToConsole(msgOK)
    76                   else WriteLnToConsole(msgFailed);
    76                   else WriteLnToConsole(msgFailed);
    77 Mix_AllocateChannels(Succ(chanTPU));
    77 Mix_AllocateChannels(Succ(chanTPU));
    78 if isMusicEnabled then Mix_VolumeMusic(50);
    78 if isMusicEnabled then Mix_VolumeMusic(50);
    79 
    79 
    80 Volume:= cInitVolume;
    80 Volume:= 0;
    81 if Volume < 0 then Volume:= 0;
    81 ChangeVolume(cInitVolume)
    82 Volume:= Mix_Volume(-1, Volume)
       
    83 end;
    82 end;
    84 
    83 
    85 procedure ReleaseSound;
    84 procedure ReleaseSound;
    86 var i: TSound;
    85 var i: TSound;
    87 	t: Longword;
    86 	t: Longword;