mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Merge pull request #4044 from FIX94/master
better check the same thing twice!
This commit is contained in:
commit
7f141fa830
@ -78,7 +78,8 @@ void wiiu_ax_callback(void)
|
|||||||
//buffer underrun, stop playback to let it fill up
|
//buffer underrun, stop playback to let it fill up
|
||||||
if(ax->written < AX_AUDIO_SAMPLE_MIN)
|
if(ax->written < AX_AUDIO_SAMPLE_MIN)
|
||||||
AXSetMultiVoiceState(ax->mvoice, AX_VOICE_STATE_STOPPED);
|
AXSetMultiVoiceState(ax->mvoice, AX_VOICE_STATE_STOPPED);
|
||||||
else //make sure to update written value if voice is running
|
//make sure to update written value if voice is running
|
||||||
|
if(AXIsMultiVoiceRunning(ax->mvoice))
|
||||||
ax->written -= AX_AUDIO_SAMPLE_COUNT;
|
ax->written -= AX_AUDIO_SAMPLE_COUNT;
|
||||||
OSUninterruptibleSpinLock_Release(&ax->spinlock);
|
OSUninterruptibleSpinLock_Release(&ax->spinlock);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user