]> git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia2/lib/sndcpcm.h
Added GSocket/wxSocket alias to socket.h to prevent us from using GSocket
[wxWidgets.git] / utils / wxMMedia2 / lib / sndcpcm.h
1 // --------------------------------------------------------------------------
2 // Name: sndcpcm.h
3 // Purpose:
4 // Date: 08/11/1999
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
6 // CVSID: $Id$
7 // --------------------------------------------------------------------------
8 #ifndef _WX_SNDCPCM_H
9 #define _WX_SNDCPCM_H
10
11 #ifdef __GNUG__
12 #pragma interface "sndcpcm.h"
13 #endif
14
15 #include <stddef.h>
16 #include "sndcodec.h"
17
18 //
19 // PCM converter class
20 //
21
22 class wxSoundStreamPcm: public wxSoundStreamCodec {
23 public:
24 typedef void (*ConverterType)(const char *buf_in, char *buf_out, wxUint32 len);
25
26 wxSoundStreamPcm(wxSoundStream& sndio);
27 ~wxSoundStreamPcm();
28
29 wxSoundStream& Read(void *buffer, wxUint32 len);
30 wxSoundStream& Write(const void *buffer, wxUint32 len);
31
32 bool SetSoundFormat(const wxSoundFormatBase& format);
33
34 protected:
35 ConverterType m_function_out, m_function_in;
36
37 bool m_16_to_8;
38 };
39
40 #endif