4d6306eb4d
* WARNING! It is quite unstable on Windows and it doesn't work on Linux for the moment because I didn't finish fixing the CODEC stream. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
29 lines
498 B
C++
29 lines
498 B
C++
#ifndef __MEDIA_SNDMULAW_H__
|
|
#define __MEDIA_SNDMULAW_H__
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "sndfrmt.h"
|
|
|
|
class wxSoundMulawCodec : public wxSoundCodec {
|
|
DECLARE_DYNAMIC_CLASS(wxSoundMulawCodec)
|
|
public:
|
|
wxSoundMulawCodec();
|
|
virtual ~wxSoundMulawCodec();
|
|
|
|
void SetSampleRate(int srate) { m_srate = srate; }
|
|
|
|
size_t GetByteRate() const;
|
|
wxSoundDataFormat GetPreferredFormat(int codec = 0) const;
|
|
|
|
void Decode();
|
|
void Encode();
|
|
|
|
protected:
|
|
int m_srate;
|
|
};
|
|
|
|
#endif
|