10 class wxSoundPcmCodec
: public wxSoundCodec
{
11 DECLARE_DYNAMIC_CLASS(wxSoundPcmCodec
)
14 virtual ~wxSoundPcmCodec();
16 void SetSampleRate(int srate
) { m_orig_format
.SetSampleRate(srate
); }
17 void SetBits(int bits
) { m_orig_format
.SetBps(bits
); }
18 void SetByteOrder(int order
) { m_orig_format
.SetByteOrder(order
); }
19 void SetSign(int sample_sign
) { m_orig_format
.SetSign(sample_sign
); }
21 size_t GetByteRate() const;
22 wxSoundDataFormat
GetPreferredFormat(int codec
= 0) const;
29 void InputSwapAndSign16();
31 void OutputSwapAndSign16();
34 wxSoundDataFormat m_orig_format
;