* Added wxMMedia in the repository so people interrested in it can work on it
* 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
This commit is contained in:
28
utils/wxMMedia/sndmulaw.h
Normal file
28
utils/wxMMedia/sndmulaw.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#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
|
Reference in New Issue
Block a user