зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1503132 don't add audio output to offline streams r=padenot
Depends on D10173 Differential Revision: https://phabricator.services.mozilla.com/D10174 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
254f2a1003
Коммит
c211c1fcb9
|
@ -370,10 +370,13 @@ AudioDestinationNode::AudioDestinationNode(AudioContext* aContext,
|
||||||
AudioNodeStream::EXTERNAL_OUTPUT;
|
AudioNodeStream::EXTERNAL_OUTPUT;
|
||||||
mStream = AudioNodeStream::Create(aContext, engine, flags, graph);
|
mStream = AudioNodeStream::Create(aContext, engine, flags, graph);
|
||||||
mStream->AddMainThreadListener(this);
|
mStream->AddMainThreadListener(this);
|
||||||
mStream->AddAudioOutput(&gWebAudioOutputKey);
|
|
||||||
|
|
||||||
if (!aIsOffline && aAllowedToStart) {
|
if (!aIsOffline) {
|
||||||
graph->NotifyWhenGraphStarted(mStream);
|
mStream->AddAudioOutput(&gWebAudioOutputKey);
|
||||||
|
|
||||||
|
if (aAllowedToStart) {
|
||||||
|
graph->NotifyWhenGraphStarted(mStream);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче