mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
CubebAudioStream: Set CUBEB_STREAM_PREF_PERSIST flag
This is required for getting default IAudioClient behavior on the WASAPI backend.
This commit is contained in:
parent
2a8fd2f60b
commit
e9e4d4174b
|
@ -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, ¶ms, &latency_frames);
|
rv = cubeb_get_min_latency(m_cubeb_context, ¶ms, &latency_frames);
|
||||||
|
|
Loading…
Reference in a new issue