citra-emu
/
citra
Archived
1
0
Fork 0

Merge pull request #5577 from vitor-k/cubeb-volume

Update cubeb to latest and request a persistent stream session
This commit is contained in:
Marshall Mohror 2020-11-16 16:54:10 -06:00 committed by GitHub
commit 7a8d576164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
externals/cubeb vendored

@ -1 +1 @@
Subproject commit 616d773441b5355800ce64197a699e6cd6b36172
Subproject commit 1d66483ad2b93f0e00e175f9480c771af90003a7

View File

@ -40,7 +40,7 @@ CubebSink::CubebSink(std::string_view target_device_name) : impl(std::make_uniqu
params.channels = 2;
params.layout = CUBEB_LAYOUT_STEREO;
params.format = CUBEB_SAMPLE_S16NE;
params.prefs = CUBEB_STREAM_PREF_NONE;
params.prefs = CUBEB_STREAM_PREF_PERSIST;
u32 minimum_latency = 100 * impl->sample_rate / 1000; // Firefox default
if (cubeb_get_min_latency(impl->ctx, &params, &minimum_latency) != CUBEB_OK) {