]> git.saurik.com Git - wxWidgets.git/blame - utils/wxMMedia/sndmulaw.h
Added test for sprintf and vsnprintf to fix string.cpp for non-GNU systems.
[wxWidgets.git] / utils / wxMMedia / sndmulaw.h
CommitLineData
4d6306eb
GL
1#ifndef __MEDIA_SNDMULAW_H__
2#define __MEDIA_SNDMULAW_H__
3
4#ifdef __GNUG__
5#pragma interface
6#endif
7
8#include "sndfrmt.h"
9
10class wxSoundMulawCodec : public wxSoundCodec {
11 DECLARE_DYNAMIC_CLASS(wxSoundMulawCodec)
12 public:
13 wxSoundMulawCodec();
14 virtual ~wxSoundMulawCodec();
15
16 void SetSampleRate(int srate) { m_srate = srate; }
17
18 size_t GetByteRate() const;
19 wxSoundDataFormat GetPreferredFormat(int codec = 0) const;
20
21 void Decode();
22 void Encode();
23
24 protected:
25 int m_srate;
26};
27
28#endif