зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1203836 - Properly handle silent chunks in AudioNodeExternalInputStream. r=karlt
--HG-- extra : rebase_source : 272b220adf13ec2a62d048ccaab2f9d70af58987
This commit is contained in:
Родитель
e8d3447c57
Коммит
ccfa972c4c
|
@ -109,8 +109,12 @@ static void ConvertSegmentToAudioBlock(AudioSegment* aSegment,
|
|||
CopyChunkToBlock<float>(*ci, aBlock, duration);
|
||||
break;
|
||||
}
|
||||
case AUDIO_FORMAT_SILENCE:
|
||||
case AUDIO_FORMAT_SILENCE: {
|
||||
// The actual type of the sample does not matter here, but we still need
|
||||
// to send some audio to the graph.
|
||||
CopyChunkToBlock<float>(*ci, aBlock, duration);
|
||||
break;
|
||||
}
|
||||
}
|
||||
duration += ci->GetDuration();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче