Bug 822956. ProcessAudioChunk needs to take account of AudioChunk::mOffset. r=jesup

This commit is contained in:
Robert O'Callahan 2013-01-04 12:16:32 -05:00
parent 036a2d63a8
commit a5c94fa139

View File

@ -675,7 +675,8 @@ void MediaPipelineTransmit::PipelineListener::ProcessAudioChunk(
break;
case AUDIO_FORMAT_S16:
{
const short* buf = static_cast<const short *>(chunk.mBuffer->Data());
const short* buf = static_cast<const short *>(chunk.mBuffer->Data()) +
chunk.mOffset;
ConvertAudioSamplesWithScale(buf, samples, chunk.mDuration, chunk.mVolume);
}
break;