equal
deleted
inserted
replaced
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 |