hedgewars/uSound.pas
changeset 14855 cbc1216fdf39
parent 14852 64f88108926b
child 14899 4e3d81af71bf
equal deleted inserted replaced
14854:42346a67fba4 14855:cbc1216fdf39
   407         isAudioMuted:= true;
   407         isAudioMuted:= true;
   408         cInitVolume:= 0;
   408         cInitVolume:= 0;
   409     end;
   409     end;
   410 
   410 
   411     WriteToConsole('Init SDL_mixer... ');
   411     WriteToConsole('Init SDL_mixer... ');
   412     if SDLCheck(Mix_Init(MIX_INIT_OGG) <> 0, 'Mix_Init', true) then exit;
   412 
       
   413     if (Mix_Init(MIX_INIT_OGG or MIX_INIT_OPUS) and MIX_INIT_OPUS) = 0 then
       
   414     begin
       
   415       WriteToConsole('Cannot init OPUS: ' + SDL_GetError());
       
   416 
       
   417       if SDLCheck(Mix_Init(MIX_INIT_OGG) <> 0, 'Mix_Init', true) then exit;
       
   418     end;
       
   419 
   413     WriteLnToConsole(msgOK);
   420     WriteLnToConsole(msgOK);
   414 
   421 
   415     // from uVariables to be used by other modules
   422     // from uVariables to be used by other modules
   416     cIsSoundEnabled:= true;
   423     cIsSoundEnabled:= true;
   417 
   424