possible fix for nosound operation
This commit is contained in:
parent
42e13fe56c
commit
fd0e198d62
1 changed files with 102 additions and 107 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue