mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-13 23:15:09 +01:00
8a4e192022
- Removed no disc in drive patch - DoGameHooks should be called always
34 lines
922 B
C++
34 lines
922 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();
|
|
}
|