sunvox_lib: multiple output channels

Post Reply
mrkishi
Posts: 1
Joined: Tue Sep 28, 2021 8:45 am

sunvox_lib: multiple output channels

Post by mrkishi »

When using SV_INIT_FLAG_USER_AUDIO_CALLBACK, the SunVox library's sv_audio_callback function renders everything into a single buffer. It'd be awesome if there was a way to output multiple channels instead, as that'd enable us to send SunVox-generated audio into different external buses.

Would it be possible to provide an alternative callback to output each slot into a separate buffer? I'd picture something like an sv_slot_audio_callback function that we'd call for each slot we were interested in (it could require a different SV_INIT_FLAG_ depending on the internals).

ps. I realize this wouldn't be as powerful or flexible as having multiple outputs in a single SunVox instance, but I imagine that would be a much bigger change to SunVox as a whole, hence the per-slot callback suggestion.
Post Reply