mirror of
https://gitlab.com/Nanolx/homebrewfilter.git
synced 2024-11-24 18:16:56 +01:00
36 lines
907 B
C++
36 lines
907 B
C++
|
/****************************************************************************
|
||
|
* libwiigui Template
|
||
|
* Tantric 2009
|
||
|
*
|
||
|
* audio.cpp
|
||
|
* Audio support
|
||
|
***************************************************************************/
|
||
|
|
||
|
#include <gccore.h>
|
||
|
#include <ogcsys.h>
|
||
|
#include <asndlib.h>
|
||
|
|
||
|
/****************************************************************************
|
||
|
* InitAudio
|
||
|
*
|
||
|
* Initializes the Wii's audio subsystem
|
||
|
***************************************************************************/
|
||
|
void InitAudio()
|
||
|
{
|
||
|
AUDIO_Init(NULL);
|
||
|
ASND_Init();
|
||
|
ASND_Pause(0);
|
||
|
}
|
||
|
|
||
|
/****************************************************************************
|
||
|
* ShutdownAudio
|
||
|
*
|
||
|
* Shuts down audio subsystem. Useful to avoid unpleasant sounds if a
|
||
|
* crash occurs during shutdown.
|
||
|
***************************************************************************/
|
||
|
void ShutdownAudio()
|
||
|
{
|
||
|
ASND_Pause(1);
|
||
|
ASND_End();
|
||
|
}
|