possible fix for nosound operation

This commit is contained in:
Volker Fischer 2013-02-19 15:26:58 +00:00
parent 42e13fe56c
commit fd0e198d62

View file

@ -94,13 +94,8 @@ class CSound : public CSoundBase
{
public:
CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* pParg ), void* pParg ) :
CSoundBase ( false, fpNewProcessCallback, pParg ) {}
CSoundBase ( "nosound", false, fpNewProcessCallback, pParg ) {}
virtual ~CSound() {}
// dummy definitions
virtual int Init ( const int iNewPrefMonoBufferSize ) { return CSoundBase::Init ( iNewPrefMonoBufferSize ); }
virtual bool Read ( CVector<short>& ) { printf ( "no sound!" ); return false; }
virtual bool Write ( CVector<short>& ) { printf ( "no sound!" ); return false; }
};
#endif // WITH_SOUND