mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 822956. ProcessAudioChunk needs to take account of AudioChunk::mOffset. r=jesup
This commit is contained in:
parent
036a2d63a8
commit
a5c94fa139
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user