mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-10 07:39:39 +01:00
fix audio for GC
This commit is contained in:
parent
94b69f6362
commit
e455f2d2d1
@ -118,14 +118,13 @@ SwitchAudioMode(int mode)
|
|||||||
ASND_Pause(1);
|
ASND_Pause(1);
|
||||||
AUDIO_StopDMA();
|
AUDIO_StopDMA();
|
||||||
AUDIO_RegisterDMACallback(AudioSwitchBuffers);
|
AUDIO_RegisterDMACallback(AudioSwitchBuffers);
|
||||||
|
#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…
x
Reference in New Issue
Block a user