mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-26 04:24:16 +01:00
fix audio for GC
This commit is contained in:
parent
0893c0857b
commit
e28daf3cc2
@ -105,14 +105,13 @@ SwitchAudioMode(int mode)
|
|||||||
ASND_Pause(1);
|
ASND_Pause(1);
|
||||||
AUDIO_StopDMA();
|
AUDIO_StopDMA();
|
||||||
AUDIO_RegisterDMACallback(AudioPlayer);
|
AUDIO_RegisterDMACallback(AudioPlayer);
|
||||||
|
#endif
|
||||||
memset(soundbuffer[0],0,3840);
|
memset(soundbuffer[0],0,3840);
|
||||||
memset(soundbuffer[1],0,3840);
|
memset(soundbuffer[1],0,3840);
|
||||||
DCFlushRange(soundbuffer[0],3840);
|
DCFlushRange(soundbuffer[0],3840);
|
||||||
DCFlushRange(soundbuffer[1],3840);
|
DCFlushRange(soundbuffer[1],3840);
|
||||||
AUDIO_InitDMA((u32)soundbuffer[whichab],3200);
|
AUDIO_InitDMA((u32)soundbuffer[whichab],3200);
|
||||||
AUDIO_StartDMA();
|
AUDIO_StartDMA();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else // menu
|
else // menu
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user