wxWidgets/utils/wxMMedia/sndadpcm.h
Guilhem Lavaux 9a1b2c283e * Added a small wxHTTP description
* Added some example/description to wxFTP
* Some more on wxURL

* Added missing file in wxMMedia


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 20:13:10 +00:00

31 lines
585 B
C++

#ifndef __MEDIA_SNDADPCM_H__
#define __MEDIA_SNDADPCM_H__
#ifdef __GNUG__
#pragma interface
#endif
#include "sndfrmt.h"
class wxSoundAdpcmCodec : public wxSoundCodec {
DECLARE_DYNAMIC_CLASS(wxSoundAdpcmCodec)
public:
wxSoundAdpcmCodec();
~wxSoundAdpcmCodec();
size_t GetByteRate() const;
wxSoundDataFormat GetPreferredFormat(int codec = 0) const;
int GetBits(int bits);
void Decode();
void Encode();
void InitWith(const wxSoundDataFormat& format);
protected:
struct g72x_state *m_codec_state;
int m_bits_waiting, m_current_byte;
int m_srate;
};
#endif