[CM] fastest way to pass block of samples in and out of s7
Iain Duncan
iainduncanlists at gmail.com
Sun Mar 9 10:35:27 PDT 2025
Fantastic! Thanks Bill, do you know if there is an example of doing this up
anywhere or in the repo?
thanks again, will let you know how it goes.
iain
On Sun, Mar 9, 2025 at 10:30 AM <bil at ccrma.stanford.edu> wrote:
> If your data is in a C array of doubles, you can
> use it directly in s7 (i.e. without copying anything);
> use the s7 function s7_make_float_vector_wrapper.
> There's a similar function to wrap GSL complex
> vectors which are (from C's point of view) arrays
> of doubles with real/imaginary parts interleaved.
> It would be easy to add integer vector wrappers.
> Both allocation and free of the actual vector is
> left to C.
>
> In the other direction, you can access the s7 float-vector
> (or int/complex) directly in C via s7_float_vector_elements
> and its friends. In this case allocation and free are
> left to s7.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20250309/c223063f/attachment.html>
More information about the Cmdist
mailing list