mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-24 08:58:04 +00:00
WIP SDL3 compatibility
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user