Skip to content

Commit

Permalink
Vita: only INIT_OGG is required
Browse files Browse the repository at this point in the history
  • Loading branch information
usineur committed Nov 16, 2017
1 parent 606cc3f commit 1c29395
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mixer_sdl.cpp
Expand Up @@ -35,10 +35,11 @@ struct MixerSDL: Mixer {
if (_isOpen) {
return;
}
Mix_Init(MIX_INIT_OGG | MIX_INIT_FLUIDSYNTH);
#ifdef BERMUDA_VITA
Mix_Init(MIX_INIT_OGG);
if (Mix_OpenAudio(kMixFreq, AUDIO_S16SYS, 1, kMixBufSize) < 0) {
#else
Mix_Init(MIX_INIT_OGG | MIX_INIT_FLUIDSYNTH);
if (Mix_OpenAudio(kMixFreq, AUDIO_S16SYS, 2, kMixBufSize) < 0) {
#endif
warning("Mix_OpenAudio failed: %s", Mix_GetError());
Expand Down

0 comments on commit 1c29395

Please sign in to comment.