Bug 1432869 - Update usage of cubeb_stream_params to set newly exposed prefs member. r=achronop

The changes to the cubeb API mean that the new prefs member on
cubeb_stream_params should be explicitly set. This changeset does so.

MozReview-Commit-ID: 1hwjLTriaBP

--HG--
extra : rebase_source : f32c4a0a945ed7a048ca40c7286024da1fb93473
This commit is contained in:
Bryce Van Dyk 2018-01-22 13:20:29 -05:00
Родитель 1691d18053
Коммит 37dd875199
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -350,6 +350,7 @@ AudioStream::Init(uint32_t aNumChannels, uint32_t aChannelMap, uint32_t aRate)
params.channels = mOutChannels;
params.layout = CubebUtils::ConvertChannelMapToCubebLayout(aChannelMap);
params.format = ToCubebFormat<AUDIO_OUTPUT_FORMAT>::value;
params.prefs = CUBEB_STREAM_PREF_NONE;
mAudioClock.Init(aRate);

Просмотреть файл

@ -627,6 +627,7 @@ AudioCallbackDriver::Init()
output.channels = mOutputChannels;
output.layout = CubebUtils::GetPreferredChannelLayoutOrSMPTE(cubebContext, mOutputChannels);
output.prefs = CUBEB_STREAM_PREF_NONE;
Maybe<uint32_t> latencyPref = CubebUtils::GetCubebMSGLatencyInFrames();
if (latencyPref) {