// -------------------------------------------------------------------------- // Name: sndcpcm.h // Purpose: // Date: 08/11/1999 // Author: Guilhem Lavaux (C) 1999 // CVSID: $Id$ // -------------------------------------------------------------------------- #ifndef _WX_SNDCPCM_H #define _WX_SNDCPCM_H #ifdef __GNUG__ #pragma interface "sndcpcm.h" #endif #include #include "sndcodec.h" // // PCM converter class // class wxSoundStreamPcm: public wxSoundStreamCodec { public: typedef void (*ConverterType)(const char *buf_in, char *buf_out, size_t len); wxSoundStreamPcm(wxSoundStream& sndio); ~wxSoundStreamPcm(); wxSoundStream& Read(void *buffer, size_t len); wxSoundStream& Write(const void *buffer, size_t len); bool SetSoundFormat(const wxSoundFormatBase& format); protected: ConverterType m_function_out, m_function_in; bool m_16_to_8; }; #endif