]> git.saurik.com Git - wxWidgets.git/blame - utils/wxMMedia2/lib/sndcodec.cpp
* Added IsPaused() to wxSoundFileStream
[wxWidgets.git] / utils / wxMMedia2 / lib / sndcodec.cpp
CommitLineData
526ddb13
GL
1// --------------------------------------------------------------------------
2// Name: sndcodec.cpp
3// Purpose:
4// Date: 08/11/1999
5// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
6// CVSID: $Id$
7// --------------------------------------------------------------------------
8#ifdef __GNUG__
9#pragma implementation "sndcodec.cpp"
10#endif
11
6c5e6376 12#include <wx/wxprec.h>
526ddb13
GL
13#include "sndbase.h"
14#include "sndcodec.h"
15
16wxSoundStreamCodec::wxSoundStreamCodec(wxSoundStream& snd_io)
17 : m_sndio(&snd_io)
18{
19}
20
21wxSoundStreamCodec::~wxSoundStreamCodec()
22{
23}
24
25bool wxSoundStreamCodec::StartProduction(int evt)
26{
27 return m_sndio->StartProduction(evt);
28}
29
30bool wxSoundStreamCodec::StopProduction()
31{
32 return m_sndio->StopProduction();
33}
34
35void wxSoundStreamCodec::SetDuplexMode(bool duplex)
36{
37 m_sndio->SetDuplexMode(duplex);
38}
56dc1ffd
GL
39
40wxUint32 wxSoundStreamCodec::GetBestSize() const
41{
42 return m_sndio->GetBestSize();
43}