Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide renderer function that takes L and R buffer arguments separately #102

Open
atsushieno opened this issue Jan 16, 2025 · 0 comments
Open

Comments

@atsushieno
Copy link

I have been building an audio plugin project that builds VST/AU/LV2/CLAP plugins using TinySoundFont. It is in general working well, but one thing I find some room for improvements is that tsf_render_float() cannot handle audio output buffers in float**.

If the audio plugin output buffers are passed as float** and outputs[0] and outputs[1] are NOT consecutive, then it cannot be passed as float* as in tsf_render_float() and it will involve extraneous buffer copying.

It is quite easy to rewrite tsf_render_float() to take two distinct buffers so it would be nice if TSF API also offers such an overload(-ish) renderer function.

I have a patch that makes it.

TSF commit @ cd82859

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant