faust icon indicating copy to clipboard operation
faust copied to clipboard

Integrate native rust audio libraries (CPAL)

Open zmackie opened this issue 3 years ago • 4 comments

Hey gang! The CPAL project seems to be the direction that rust audio is working in as "the way" to do audio interfacing in that language. I was playing with faust generated rust code and was thinking that it should use https://github.com/RustAudio/cpal under the hood as one of the architectures. I'm adding this issue more as a means of tracking things rather than a "do this for me please" because I know how much work you've all got on your plates!

In any case, I'm curious what maintainers and people think. Thank!

zmackie avatar Jun 03 '21 15:06 zmackie

That would be great yes !

For now we have JACK (https://github.com/grame-cncm/faust/blob/master-dev/architecture/minimal-jack.rs) and PortAudio (https://github.com/grame-cncm/faust/blob/master-dev/architecture/minimal-portaudio.rs) architectures that could be used as examples.

sletz avatar Jun 03 '21 15:06 sletz

CPAL in progresse with this commit: https://github.com/grame-cncm/faust/commit/ef4ddf8cdaecdb5da66bac99b6aed6b964e56ef3, which adds a new faust2cpalrust script.

sletz avatar Jun 04 '21 15:06 sletz

Duplex mode is still not supported in CPAL (see https://github.com/RustAudio/cpal/pull/553). So better wait for that before moving on.

sletz avatar Jun 05 '21 10:06 sletz

Ah makes sense!

zmackie avatar Jun 08 '21 13:06 zmackie