зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1190676 - Part 11 - Fix consumers: Web Speech. r=anatal,eitan
--HG-- extra : rebase_source : 1f5589c488beb6cadefbe0b3030590e33fcd292b
This commit is contained in:
Родитель
8eb4594e21
Коммит
6dc1e1fd9f
|
@ -143,7 +143,7 @@ void
|
|||
nsSpeechTask::Init(ProcessedMediaStream* aStream)
|
||||
{
|
||||
if (aStream) {
|
||||
mStream = MediaStreamGraph::GetInstance()->CreateSourceStream(nullptr);
|
||||
mStream = aStream->Graph()->CreateSourceStream(nullptr);
|
||||
mPort = aStream->AllocateInputPort(mStream, 0);
|
||||
mIndirectAudio = false;
|
||||
} else {
|
||||
|
|
|
@ -778,7 +778,9 @@ nsSynthVoiceRegistry::SpeakImpl(VoiceData* aVoice,
|
|||
aTask->Init(nullptr);
|
||||
} else {
|
||||
if (!mStream) {
|
||||
mStream = MediaStreamGraph::GetInstance()->CreateTrackUnionStream(nullptr);
|
||||
mStream =
|
||||
MediaStreamGraph::GetInstance(MediaStreamGraph::AUDIO_THREAD_DRIVER,
|
||||
AudioChannel::Normal)->CreateTrackUnionStream(nullptr);
|
||||
}
|
||||
aTask->Init(mStream);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче