X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a040d3f0708e859f812cc10ed1b391d4ca89a07..fed485e0946d9cff74fce6afdb169796d90a99f2:/utils/wxMMedia/sndfrmt.cpp diff --git a/utils/wxMMedia/sndfrmt.cpp b/utils/wxMMedia/sndfrmt.cpp index 2c446375ea..dc6d653ad9 100644 --- a/utils/wxMMedia/sndfrmt.cpp +++ b/utils/wxMMedia/sndfrmt.cpp @@ -106,9 +106,11 @@ void wxSoundDataFormat::CodecChange() case WXSOUND_PCM: { wxSoundPcmCodec *pcm_codec = (wxSoundPcmCodec *)codec; - pcm_codec->SetBits(m_bps); - pcm_codec->SetByteOrder(m_byteorder); - pcm_codec->SetSign(m_sign); + pcm_codec->m_orig_format.SetSampleRate(m_srate); + pcm_codec->m_orig_format.SetBps(m_bps); + pcm_codec->m_orig_format.SetChannels(m_channels); + pcm_codec->m_orig_format.SetByteOrder(m_byteorder); + pcm_codec->m_orig_format.SetSign(m_sign); break; } default: