mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2025-02-16 20:39:15 +01:00
Fix audio again and again and again
This commit is contained in:
parent
22a03937ce
commit
0a753b5d12
@ -56,8 +56,6 @@ static int MixerCollect( u8 *outbuffer, int len )
|
||||
if (mixtail < 0)
|
||||
mixtail += MIXBUFSIZE_WORDS;
|
||||
done &= ~0x1f;
|
||||
if (!done)
|
||||
return len >> 1;
|
||||
|
||||
return done;
|
||||
}
|
||||
@ -72,6 +70,9 @@ static void AudioSwitchBuffers()
|
||||
if ( !ConfigRequested )
|
||||
{
|
||||
int len = MixerCollect( soundbuffer[whichab], SOUNDBUFSIZE );
|
||||
if (len == 0)
|
||||
return;
|
||||
|
||||
DCFlushRange(soundbuffer[whichab], len);
|
||||
AUDIO_InitDMA((u32)soundbuffer[whichab], len);
|
||||
AUDIO_StartDMA();
|
||||
|
Loading…
x
Reference in New Issue
Block a user