mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
Minor progress. But no audio, hrm.
This commit is contained in:
parent
72c070f338
commit
4a05e50636
@ -101,11 +101,6 @@ static DWORD CALLBACK dsound_thread(PVOID data)
|
||||
get_positions(ds, &read_ptr, NULL);
|
||||
|
||||
DWORD avail = write_avail(read_ptr, write_ptr, buffer_mask);
|
||||
if (avail > ds->buffer_size / 2) // We've underrun (or started to underrun) for some odd reason, skip ahead.
|
||||
{
|
||||
write_ptr = (read_ptr + ds->buffer_size - 2 * CHUNK_SIZE) & buffer_mask;
|
||||
avail = 2 * CHUNK_SIZE;
|
||||
}
|
||||
|
||||
EnterCriticalSection(&ds->crit);
|
||||
DWORD fifo_avail = fifo_read_avail(ds->buffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user