mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-02 17:12:15 +00:00
no need for atomic_int_dec_and_test()
This commit is contained in:
parent
0bf4873ab2
commit
6b847829ef
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ static int fluid_rvoice_eventhandler_push_LOCAL(fluid_rvoice_eventhandler_t* han
|
|||
event = fluid_ringbuffer_get_inptr(handler->queue, old_queue_stored);
|
||||
|
||||
if (event == NULL) {
|
||||
fluid_atomic_int_dec_and_test(&handler->queue_stored);
|
||||
fluid_atomic_int_add(&handler->queue_stored, -1);
|
||||
FLUID_LOG(FLUID_WARN, "Ringbuffer full, try increasing polyphony!");
|
||||
return FLUID_FAILED; // Buffer full...
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue