Merge pull request #1984 from ggrtk/cubeb-persist

CubebAudioStream: Set CUBEB_STREAM_PREF_PERSIST flag
This commit is contained in:
Connor McLaughlin 2021-04-18 13:53:09 +10:00 committed by GitHub
commit a6cd7f383a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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