setProcessingTap

Installs a processing tap to receive and modify audio buffers during playback.

The callback receives audio as Float32 samples (-1.0 to 1.0 range). Modifications to the buffer are applied to playback output in real-time.

Important: The callback runs on the audio thread and must be fast. Avoid allocations, blocking operations, or heavy computation.

Parameters

callback

Function that receives a mutable audio buffer (interleaved Float32). Pass null to remove an existing tap.