1 // --------------------------------------------------------------------------
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
7 // --------------------------------------------------------------------------
12 #pragma interface "sndcpcm.h"
19 // PCM converter class
22 class wxSoundStreamPcm
: public wxSoundStreamCodec
{
24 typedef void (*ConverterType
)(const char *buf_in
, char *buf_out
, size_t len
);
26 wxSoundStreamPcm(wxSoundStream
& sndio
);
29 wxSoundStream
& Read(void *buffer
, size_t len
);
30 wxSoundStream
& Write(const void *buffer
, size_t len
);
32 bool SetSoundFormat(const wxSoundFormatBase
& format
);
35 ConverterType m_function_out
, m_function_in
;