зеркало из 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,12 +370,15 @@ AudioDestinationNode::AudioDestinationNode(AudioContext* aContext,
|
|||
AudioNodeStream::EXTERNAL_OUTPUT;
|
||||
mStream = AudioNodeStream::Create(aContext, engine, flags, graph);
|
||||
mStream->AddMainThreadListener(this);
|
||||
|
||||
if (!aIsOffline) {
|
||||
mStream->AddAudioOutput(&gWebAudioOutputKey);
|
||||
|
||||
if (!aIsOffline && aAllowedToStart) {
|
||||
if (aAllowedToStart) {
|
||||
graph->NotifyWhenGraphStarted(mStream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
AudioDestinationNode::~AudioDestinationNode()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче