]> git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia/sndpcm.h
fixed somebody's poorly done StreamSize-->GetSize transition
[wxWidgets.git] / utils / wxMMedia / sndpcm.h
1 #ifndef __SNDPCM_H__
2 #define __SNDPCM_H__
3
4 #ifdef __GNUG__
5 #pragma interface
6 #endif
7
8 #include "sndfrmt.h"
9
10 class wxSoundPcmCodec : public wxSoundCodec {
11 DECLARE_DYNAMIC_CLASS(wxSoundPcmCodec)
12 public:
13 wxSoundPcmCodec();
14 virtual ~wxSoundPcmCodec();
15
16 size_t GetByteRate() const;
17 wxSoundDataFormat GetPreferredFormat(int codec = 0) const;
18
19 void Decode();
20 void Encode();
21
22 protected:
23 void InputSign8();
24 void InputSwapAndSign16();
25 void OutputSign8();
26 void OutputSwapAndSign16();
27
28 protected:
29 friend class wxSoundDataFormat;
30 wxSoundDataFormat m_orig_format;
31 char m_char_stack;
32 bool m_char_bool;
33 };
34
35 #endif