Bug 907817 - Allow AudioStream users to pass-in latency requirements. r=kinetik

This commit is contained in:
Paul Adenot
2013-10-17 15:44:52 +02:00
parent 3c91650ff5
commit 5b3a84d59c
5 changed files with 37 additions and 9 deletions

View File

@@ -1059,7 +1059,7 @@ void MediaDecoderStateMachine::AudioLoop()
// circumstances, so we take care to drop the decoder monitor while
// initializing.
nsAutoPtr<AudioStream> audioStream(AudioStream::AllocateStream());
audioStream->Init(channels, rate, audioChannelType);
audioStream->Init(channels, rate, audioChannelType, AudioStream::HighLatency);
audioStream->SetVolume(volume);
if (audioStream->SetPreservesPitch(preservesPitch) != NS_OK) {
NS_WARNING("Setting the pitch preservation failed at AudioLoop start.");