1// -------------------------------------------------------------------------- 2// Name: sndcodec.cpp 3// Purpose: 4// Date: 08/11/1999 5// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999 6// CVSID: $Id: sndcodec.cpp 35650 2005-09-23 12:56:45Z MR $ 7// wxWindows licence 8// -------------------------------------------------------------------------- 9 10#include "wx/wxprec.h" 11 12#ifndef WX_PRECOMP 13#include "wx/defs.h" 14#endif 15 16#ifdef __BORLANDC__ 17 #pragma hdrstop 18#endif 19 20#include "wx/mmedia/sndbase.h" 21#include "wx/mmedia/sndcodec.h" 22 23wxSoundStreamCodec::wxSoundStreamCodec(wxSoundStream& snd_io) 24 : m_sndio(&snd_io) 25{ 26} 27 28wxSoundStreamCodec::~wxSoundStreamCodec() 29{ 30} 31 32bool wxSoundStreamCodec::StartProduction(int evt) 33{ 34 return m_sndio->StartProduction(evt); 35} 36 37bool wxSoundStreamCodec::StopProduction() 38{ 39 return m_sndio->StopProduction(); 40} 41 42wxUint32 wxSoundStreamCodec::GetBestSize() const 43{ 44 return m_sndio->GetBestSize(); 45} 46