mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 10:50:15 -10:00
audio_driver_set_core_float() decides a source format change at once and hands it to the threaded pipeline's consumer as a request word, to install before its next pass; the producer writes nothing into the ring until it has. A populated ring keeps its native format, as before, and the producer converts its writes meanwhile. The stage a running or suspended transport needs in the new format is made by the producer and the old one handed back to it to free; one that cannot be made drops the transport, keeping the new source native. That was the last control to park the audio thread, so audio_thread_apply_control() goes. Harnesses that parked the consumer to look at its state stop and start the wrapper instead, and thread_handshake checks audio_thread_parked() across its round trips. pipeline_format hands its format change to a consumer pass and checks nothing takes effect before it.