mirror of https://github.com/PCSX2/pcsx2.git
GS:Capture: Fix s16 audio output
This commit is contained in:
parent
484b75f755
commit
dad03478fd
|
@ -1114,7 +1114,7 @@ bool GSCapture::ProcessAudioPackets(s64 video_pts)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Direct copy - optimal.
|
// Direct copy - optimal.
|
||||||
std::memcpy(s_converted_audio_frame->data[0] + s_audio_frame_pos * s_audio_frame_bps,
|
std::memcpy(s_converted_audio_frame->data[0] + s_audio_frame_pos * s_audio_frame_bps * AUDIO_CHANNELS,
|
||||||
&s_audio_buffer[s_audio_buffer_read_pos * AUDIO_CHANNELS], this_batch * sizeof(s16) * AUDIO_CHANNELS);
|
&s_audio_buffer[s_audio_buffer_read_pos * AUDIO_CHANNELS], this_batch * sizeof(s16) * AUDIO_CHANNELS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1434,4 +1434,4 @@ GSCapture::CodecList GSCapture::GetVideoCodecList(const char* container)
|
||||||
GSCapture::CodecList GSCapture::GetAudioCodecList(const char* container)
|
GSCapture::CodecList GSCapture::GetAudioCodecList(const char* container)
|
||||||
{
|
{
|
||||||
return GetCodecListForContainer(container, AVMEDIA_TYPE_AUDIO);
|
return GetCodecListForContainer(container, AVMEDIA_TYPE_AUDIO);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue