2009-05-03 20:53:31 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* libwiigui Template
|
|
|
|
* Tantric 2009
|
|
|
|
*
|
|
|
|
* audio.cpp
|
|
|
|
* Audio support
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#include <gccore.h>
|
|
|
|
#include <ogcsys.h>
|
|
|
|
#include <asndlib.h>
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* InitAudio
|
|
|
|
*
|
|
|
|
* Initializes the Wii's audio subsystem
|
|
|
|
***************************************************************************/
|
2010-09-19 01:16:05 +02:00
|
|
|
void InitAudio()
|
|
|
|
{
|
|
|
|
AUDIO_Init( NULL );
|
2009-07-30 07:41:12 +02:00
|
|
|
ASND_Init();
|
2010-09-19 01:16:05 +02:00
|
|
|
ASND_Pause( 0 );
|
2009-05-03 20:53:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* ShutdownAudio
|
|
|
|
*
|
|
|
|
* Shuts down audio subsystem. Useful to avoid unpleasant sounds if a
|
|
|
|
* crash occurs during shutdown.
|
|
|
|
***************************************************************************/
|
2010-09-19 01:16:05 +02:00
|
|
|
void ShutdownAudio()
|
|
|
|
{
|
|
|
|
ASND_Pause( 1 );
|
2009-07-30 07:41:12 +02:00
|
|
|
ASND_End();
|
2009-05-03 20:53:31 +02:00
|
|
|
}
|