hedgewars/uSound.pas
changeset 2905 f3c79f7193a9
parent 2832 8cb73c0e77a1
child 2948 3f21a9dc93d0
equal deleted inserted replaced
2904:209a0c573917 2905:f3c79f7193a9
   204 if not isSoundEnabled then exit;
   204 if not isSoundEnabled then exit;
   205 if (chn <> -1) and (Mix_Playing(chn) <> 0) then Mix_HaltChannel(chn);
   205 if (chn <> -1) and (Mix_Playing(chn) <> 0) then Mix_HaltChannel(chn);
   206 end;
   206 end;
   207 
   207 
   208 procedure PlayMusic;
   208 procedure PlayMusic;
   209 var s: string;
   209 var s: shortstring;
   210 begin
   210 begin
   211 if (not isSoundEnabled)
   211 if (not isSoundEnabled)
   212 	or (MusicFN = '')
   212 	or (MusicFN = '')
   213 	or (not isMusicEnabled) then exit;
   213 	or (not isMusicEnabled) then exit;
   214 
   214