Live data from Hacker News

SoundStream – A simple-as-possible, fast audio I/O stream for Rust

github.com

11–12 of 12 posts

Re: SoundStream – A simple-as-possible, fast audio I/O stream for Rust

#11

This is neat, but... > SoundStream requires that you have the PortAudio lib installed on your system Meh. Theres really no excuse, given cargo now has proper support for building cross platform dependencies. My least favourite thing about rust is trying to use a crate only to find 'author assumed you already had dependencies installed. sorry'

I know what you mean. I've talked with the author of the PortAudio bindings and we're planning on including a static lib with the repo instead (along with a cargo build script), so that should hopefully make it as easy to use as any other crate.

Could a config option be used to make the bindings still use the system's portaudio if it's already there? Or will it actually check if portaudio is installed before building its own?

Re: SoundStream – A simple-as-possible, fast audio I/O stream for Rust

#12

Earlier quoted context omitted.

I know what you mean. I've talked with the author of the PortAudio bindings and we're planning on including a static lib with the repo instead (along with a cargo build script), so that should hopefully make it as easy to use as any other crate.

Could a config option be used to make the bindings still use the system's portaudio if it's already there? Or will it actually check if portaudio is installed before building its own?

Hopefully this is doable! I believe Jeremy's currently having a go at getting a build script working that will:

1. check if PA is already installed 2. if not, will download and install PA.

The pull request is open and is here if you(/anyone) want to check it out / comment / contribute:

https://github.com/jeremyletang/rust-portaudio/pull/37

Post reply on HN