]> git.saurik.com Git - wxWidgets.git/blame - utils/wxMMedia2/lib/sndcpcm.h
* Added IsPaused() to wxSoundFileStream
[wxWidgets.git] / utils / wxMMedia2 / lib / sndcpcm.h
CommitLineData
526ddb13
GL
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
22class wxSoundStreamPcm: public wxSoundStreamCodec {
23 public:
0662cd32 24 typedef void (*ConverterType)(const char *buf_in, char *buf_out, wxUint32 len);
526ddb13
GL
25
26 wxSoundStreamPcm(wxSoundStream& sndio);
27 ~wxSoundStreamPcm();
28
0662cd32
GL
29 wxSoundStream& Read(void *buffer, wxUint32 len);
30 wxSoundStream& Write(const void *buffer, wxUint32 len);
526ddb13
GL
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