]> git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia/sndadpcm.h
wxFileDialog::GetFilename and GetDir work now
[wxWidgets.git] / utils / wxMMedia / sndadpcm.h
1 #ifndef __MEDIA_SNDADPCM_H__
2 #define __MEDIA_SNDADPCM_H__
3
4 #ifdef __GNUG__
5 #pragma interface
6 #endif
7
8 #include "sndfrmt.h"
9
10 class wxSoundAdpcmCodec : public wxSoundCodec {
11 DECLARE_DYNAMIC_CLASS(wxSoundAdpcmCodec)
12 public:
13 wxSoundAdpcmCodec();
14 ~wxSoundAdpcmCodec();
15
16 size_t GetByteRate() const;
17 wxSoundDataFormat GetPreferredFormat(int codec = 0) const;
18 int GetBits(int bits);
19
20 void Decode();
21 void Encode();
22
23 void InitWith(const wxSoundDataFormat& format);
24 protected:
25 struct g72x_state *m_codec_state;
26 int m_bits_waiting, m_current_byte;
27 int m_srate;
28 };
29
30 #endif