Backed out changeset ac06eacc2206 (bug 987064) for B2G ICS Emulator Debug Bustage on a CLOSED TREE
This commit is contained in:
@@ -763,7 +763,7 @@ void MediaDecoderStateMachine::AudioLoop()
|
||||
bool setPlaybackRate;
|
||||
bool preservesPitch;
|
||||
bool setPreservesPitch;
|
||||
AudioChannel audioChannel;
|
||||
AudioChannelType audioChannelType;
|
||||
|
||||
{
|
||||
ReentrantMonitorAutoEnter mon(mDecoder->GetReentrantMonitor());
|
||||
@@ -773,7 +773,7 @@ void MediaDecoderStateMachine::AudioLoop()
|
||||
channels = mInfo.mAudio.mChannels;
|
||||
rate = mInfo.mAudio.mRate;
|
||||
|
||||
audioChannel = mDecoder->GetAudioChannel();
|
||||
audioChannelType = mDecoder->GetAudioChannelType();
|
||||
volume = mVolume;
|
||||
preservesPitch = mPreservesPitch;
|
||||
playbackRate = mPlaybackRate;
|
||||
@@ -784,7 +784,7 @@ void MediaDecoderStateMachine::AudioLoop()
|
||||
// circumstances, so we take care to drop the decoder monitor while
|
||||
// initializing.
|
||||
nsAutoPtr<AudioStream> audioStream(new AudioStream());
|
||||
audioStream->Init(channels, rate, audioChannel, AudioStream::HighLatency);
|
||||
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.");
|
||||
|
||||
Reference in New Issue
Block a user