CubebAudioStream: Set CUBEB_STREAM_PREF_PERSIST flag

This is required for getting default IAudioClient behavior on the WASAPI
backend.
This commit is contained in:
Albert Liu 2021-04-17 20:37:49 -07:00
parent 2a8fd2f60b
commit e9e4d4174b

View file

@ -43,7 +43,7 @@ bool CubebAudioStream::OpenDevice()
params.rate = m_output_sample_rate; params.rate = m_output_sample_rate;
params.channels = m_channels; params.channels = m_channels;
params.layout = CUBEB_LAYOUT_UNDEFINED; params.layout = CUBEB_LAYOUT_UNDEFINED;
params.prefs = CUBEB_STREAM_PREF_NONE; params.prefs = CUBEB_STREAM_PREF_PERSIST;
u32 latency_frames = 0; u32 latency_frames = 0;
rv = cubeb_get_min_latency(m_cubeb_context, &params, &latency_frames); rv = cubeb_get_min_latency(m_cubeb_context, &params, &latency_frames);