]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/mmedia/sndcodec.cpp
Fix "warning: operation on 'y' may be undefined".
[wxWidgets.git] / contrib / src / mmedia / sndcodec.cpp
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 // wxWindows licence
8 // --------------------------------------------------------------------------
9 #ifdef __GNUG__
10 #pragma implementation "sndcodec.cpp"
11 #endif
12
13 #include "wx/wxprec.h"
14
15 #ifndef WX_PRECOMP
16 #include "wx/defs.h"
17 #endif
18
19 #ifdef __BORLANDC__
20 #pragma hdrstop
21 #endif
22
23 #include "wx/mmedia/sndbase.h"
24 #include "wx/mmedia/sndcodec.h"
25
26 wxSoundStreamCodec::wxSoundStreamCodec(wxSoundStream& snd_io)
27 : m_sndio(&snd_io)
28 {
29 }
30
31 wxSoundStreamCodec::~wxSoundStreamCodec()
32 {
33 }
34
35 bool wxSoundStreamCodec::StartProduction(int evt)
36 {
37 return m_sndio->StartProduction(evt);
38 }
39
40 bool wxSoundStreamCodec::StopProduction()
41 {
42 return m_sndio->StopProduction();
43 }
44
45 wxUint32 wxSoundStreamCodec::GetBestSize() const
46 {
47 return m_sndio->GetBestSize();
48 }