2008-09-14 22:40:26 +02:00
|
|
|
/****************************************************************************
|
2008-09-17 04:27:55 +02:00
|
|
|
* Visual Boy Advance GX
|
|
|
|
*
|
2022-01-09 17:41:59 +01:00
|
|
|
* Tantric 2008-2022
|
2008-09-17 04:27:55 +02:00
|
|
|
*
|
|
|
|
* audio.h
|
|
|
|
*
|
|
|
|
* Head and tail audio mixer
|
|
|
|
***************************************************************************/
|
|
|
|
|
2008-09-14 22:40:26 +02:00
|
|
|
#ifndef __AUDIOMIXER__
|
|
|
|
#define __AUDIOMIXER__
|
|
|
|
|
2010-03-22 00:49:59 +01:00
|
|
|
#include "vba/common/SoundDriver.h"
|
2009-01-10 09:03:58 +01:00
|
|
|
|
2008-09-16 07:42:21 +02:00
|
|
|
void InitialiseSound();
|
2009-01-13 05:20:08 +01:00
|
|
|
void StopAudio();
|
|
|
|
void SetAudioRate(int type);
|
2009-04-08 09:08:12 +02:00
|
|
|
void SwitchAudioMode(int mode);
|
|
|
|
void ShutdownAudio();
|
2008-09-14 22:40:26 +02:00
|
|
|
|
2009-01-10 09:03:58 +01:00
|
|
|
class SoundWii: public SoundDriver
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SoundWii();
|
|
|
|
virtual ~SoundWii();
|
|
|
|
|
|
|
|
virtual bool init(long sampleRate);
|
|
|
|
virtual void pause();
|
|
|
|
virtual void reset();
|
|
|
|
virtual void resume();
|
|
|
|
virtual void write(u16 * finalWave, int length);
|
|
|
|
};
|
|
|
|
|
2008-09-14 22:40:26 +02:00
|
|
|
#endif
|