mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
small correction
This commit is contained in:
parent
73a58f1b50
commit
1c990c691c
@ -73,7 +73,7 @@ void wiiu_ax_callback(void)
|
||||
ax_audio_t *ax = (ax_audio_t*)wiiu_cb_ax;
|
||||
if(AXIsMultiVoiceRunning(ax->mvoice))
|
||||
{
|
||||
if(OSUninterruptibleSpinLock_TryAcquire(&ax->spinlock))
|
||||
if(OSUninterruptibleSpinLock_Acquire(&ax->spinlock))
|
||||
{
|
||||
//buffer underrun, stop playback to let it fill up
|
||||
if(ax->written < AX_AUDIO_SAMPLE_MIN)
|
||||
@ -258,10 +258,11 @@ static ssize_t ax_audio_write(void* data, const void* buf, size_t size)
|
||||
DCStoreRange(ax->buffer_r, flushP2);
|
||||
}
|
||||
//add in new audio data
|
||||
OSUninterruptibleSpinLock_Acquire(&ax->spinlock);
|
||||
ax->written += count;
|
||||
OSUninterruptibleSpinLock_Release(&ax->spinlock);
|
||||
|
||||
if(OSUninterruptibleSpinLock_Acquire(&ax->spinlock))
|
||||
{
|
||||
ax->written += count;
|
||||
OSUninterruptibleSpinLock_Release(&ax->spinlock);
|
||||
}
|
||||
//possibly buffer underrun
|
||||
if(!AXIsMultiVoiceRunning(ax->mvoice))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user