mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 21:09:34 -10:00
OpenSL's blocks are one arena, so its lend runs from the fill point through every block the device does not hold, to the arena's end: the pipeline produces its output in the buffers the device plays, and the end enqueues each block it completes, sharing write()'s enqueue. DirectSound and SDL2 lend the ring their pump and callback drain, and JACK the first part of its ringbuffer's write vector, whose two entry points join the table it loads; each in whole frames. opensl's mock now plays back what each block held when it finished, and the lend's spans are checked to cross blocks and play in order. dsound_pump lends through wine's DirectSound, jack_runtime through the fake server into the port buffers, and sdl_lost_wakeup against SDL's dummy device, which the samples/audio workflow now runs. pipeline_wakeups reports the staged writes a lending device still takes.