Bug 1190676 - Part 10 - Fix consumers: AudioDestinationNode. r=karlt

--HG--
extra : rebase_source : 6cbad24c90bb83b1ee44a299f8eadd8eabff53cf
This commit is contained in:
Paul Adenot 2015-08-25 10:30:43 +02:00
Родитель 1d89543d08
Коммит 8eb4594e21
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -320,10 +320,9 @@ AudioDestinationNode::AudioDestinationNode(AudioContext* aContext,
, mExtraCurrentTimeUpdatedSinceLastStableState(false) , mExtraCurrentTimeUpdatedSinceLastStableState(false)
, mCaptured(false) , mCaptured(false)
{ {
bool startWithAudioDriver = true;
MediaStreamGraph* graph = aIsOffline ? MediaStreamGraph* graph = aIsOffline ?
MediaStreamGraph::CreateNonRealtimeInstance(aSampleRate) : MediaStreamGraph::CreateNonRealtimeInstance(aSampleRate) :
MediaStreamGraph::GetInstance(startWithAudioDriver, aChannel); MediaStreamGraph::GetInstance(MediaStreamGraph::AUDIO_THREAD_DRIVER, aChannel);
AudioNodeEngine* engine = aIsOffline ? AudioNodeEngine* engine = aIsOffline ?
new OfflineDestinationNodeEngine(this, aNumberOfChannels, new OfflineDestinationNodeEngine(this, aNumberOfChannels,
aLength, aSampleRate) : aLength, aSampleRate) :