зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1036431 - Setting AudioContext.mozAudioChannelType should set the audiochannel in mStream as well, r=ehsan
This commit is contained in:
Родитель
909d33279c
Коммит
1054e1f42a
|
@ -329,7 +329,6 @@ AudioDestinationNode::AudioDestinationNode(AudioContext* aContext,
|
|||
static_cast<AudioNodeEngine*>(new DestinationNodeEngine(this));
|
||||
|
||||
mStream = graph->CreateAudioNodeStream(engine, MediaStreamGraph::EXTERNAL_STREAM);
|
||||
mStream->SetAudioChannelType(aChannel);
|
||||
mStream->AddMainThreadListener(this);
|
||||
mStream->AddAudioOutput(&gWebAudioOutputKey);
|
||||
|
||||
|
@ -539,6 +538,10 @@ AudioDestinationNode::SetMozAudioChannelType(AudioChannel aValue, ErrorResult& a
|
|||
CheckAudioChannelPermissions(aValue)) {
|
||||
mAudioChannel = aValue;
|
||||
|
||||
if (mStream) {
|
||||
mStream->SetAudioChannelType(mAudioChannel);
|
||||
}
|
||||
|
||||
if (mAudioChannelAgent) {
|
||||
CreateAudioChannelAgent();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче