|
ReXGlue SDK
|
#include <rex/apu/audio_system.h>
Mixes the open streams. For every period the device asks for, the mix takes one frame from every open stream and applies the player's settings. A stream with nothing queued adds silence. With no driver the mix runs on a timer, so every stream receives its frame played callbacks.
A sample that is not finite becomes silence. With apu.peak_limit above 0, a stream whose peak stays above it for two periods ramps to silence until a frame comes back under it.