sizing, ...): it shows me movies. * Fixed a major bug in sndcpcm: we must divide by 2 the length of the sound block because we work in 16 bits mode * Support for Video in wxMultimediaBoard * Other fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
39 lines
807 B
C++
39 lines
807 B
C++
// --------------------------------------------------------------------------
|
|
// Name: sndcodec.cpp
|
|
// Purpose:
|
|
// Date: 08/11/1999
|
|
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
|
|
// CVSID: $Id$
|
|
// --------------------------------------------------------------------------
|
|
#ifdef __GNUG__
|
|
#pragma implementation "sndcodec.cpp"
|
|
#endif
|
|
|
|
#include <wx/wxprec.h>
|
|
#include "sndbase.h"
|
|
#include "sndcodec.h"
|
|
|
|
wxSoundStreamCodec::wxSoundStreamCodec(wxSoundStream& snd_io)
|
|
: m_sndio(&snd_io)
|
|
{
|
|
}
|
|
|
|
wxSoundStreamCodec::~wxSoundStreamCodec()
|
|
{
|
|
}
|
|
|
|
bool wxSoundStreamCodec::StartProduction(int evt)
|
|
{
|
|
return m_sndio->StartProduction(evt);
|
|
}
|
|
|
|
bool wxSoundStreamCodec::StopProduction()
|
|
{
|
|
return m_sndio->StopProduction();
|
|
}
|
|
|
|
wxUint32 wxSoundStreamCodec::GetBestSize() const
|
|
{
|
|
return m_sndio->GetBestSize();
|
|
}
|