WIP SDL3 compatibility

This commit is contained in:
Cameron Gutman
2025-01-31 01:13:17 -06:00
parent 5290305944
commit 231a67946d
34 changed files with 772 additions and 497 deletions

View File

@@ -22,7 +22,7 @@ bool SdlAudioRenderer::prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATION*
SDL_zero(want);
want.freq = opusConfig->sampleRate;
want.format = AUDIO_F32SYS;
want.format = SDL_AUDIO_F32;
want.channels = opusConfig->channelCount;
// On PulseAudio systems, setting a value too small can cause underruns for other
@@ -73,7 +73,7 @@ bool SdlAudioRenderer::prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATION*
SDL_GetCurrentAudioDriver());
// Start playback
SDL_PauseAudioDevice(m_AudioDevice, 0);
SDL_ResumeAudioDevice(m_AudioDevice);
return true;
}