зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1444479 - P5. Let AudioSink deal with unknown layout. r=padenot
MozReview-Commit-ID: F31zNl5o9n1
This commit is contained in:
Родитель
adbf3514c6
Коммит
f15eea87d5
|
@ -403,9 +403,9 @@ AudioSink::NotifyAudioNeeded()
|
|||
mOutputChannels == data->mChannels
|
||||
? inputLayout
|
||||
: AudioConfig::ChannelLayout(mOutputChannels);
|
||||
mConverter =
|
||||
MakeUnique<AudioConverter>(AudioConfig(inputLayout, data->mRate),
|
||||
AudioConfig(outputLayout, mOutputRate));
|
||||
mConverter = MakeUnique<AudioConverter>(
|
||||
AudioConfig(inputLayout, data->mChannels, data->mRate),
|
||||
AudioConfig(outputLayout, mOutputChannels, mOutputRate));
|
||||
}
|
||||
|
||||
// See if there's a gap in the audio. If there is, push silence into the
|
||||
|
|
Загрузка…
Ссылка в новой задаче