X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a7c9dcc1c6424976bc40995bbb1d37154cb69e0..2356708db31b737c6eae53c2316b642aa5a2e68d:/utils/wxMMedia/sndwav.cpp diff --git a/utils/wxMMedia/sndwav.cpp b/utils/wxMMedia/sndwav.cpp index 05d8019cc6..23857f15c1 100644 --- a/utils/wxMMedia/sndwav.cpp +++ b/utils/wxMMedia/sndwav.cpp @@ -140,13 +140,12 @@ bool wxSndWavCodec::PrepareToRecord(wxUint32 m_fsize) if (!riff_codec.CreateChunk("fmt ", sizeof(wav_hdr))) return FALSE; - wav_hdr.format = 1; // PCM_WAV_FORMAT + wav_hdr.format = m_sndformat.GetCodecNo(); // PCM_WAV_FORMAT wav_hdr.channels = m_sndformat.GetChannels(); wav_hdr.sample_fq = m_sndformat.GetSampleRate(); wav_hdr.byte_p_spl = (m_sndformat.GetBps() / 8) * wav_hdr.channels; wav_hdr.byte_p_sec = m_sndformat.GetCodec()->GetByteRate(); wav_hdr.bits_p_spl = m_sndformat.GetBps(); - ChangeCodec(WXSOUND_PCM); if (wav_hdr.format == WXSOUND_PCM) { m_sndformat.SetSign(wxSND_SAMPLE_SIGNED);