]> git.saurik.com Git - wxWidgets.git/blame - utils/wxMMedia/sndpcm.h
minimal now works in Unicode mode
[wxWidgets.git] / utils / wxMMedia / sndpcm.h
CommitLineData
4d6306eb
GL
1#ifndef __SNDPCM_H__
2#define __SNDPCM_H__
3
4#ifdef __GNUG__
5#pragma interface
6#endif
7
8#include "sndfrmt.h"
9
10class wxSoundPcmCodec : public wxSoundCodec {
11 DECLARE_DYNAMIC_CLASS(wxSoundPcmCodec)
12 public:
13 wxSoundPcmCodec();
14 virtual ~wxSoundPcmCodec();
15
4d6306eb
GL
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:
c06a465c 29 friend class wxSoundDataFormat;
4d6306eb
GL
30 wxSoundDataFormat m_orig_format;
31 char m_char_stack;
32 bool m_char_bool;
33};
34
35#endif