sound_stream
sound_stream copied to clipboard
dt is always 0
Using rust 1.5.0-nightly (0be1bcd06 2015-10-24) the delta-time parameter given to output::Builder::run_callback is always zero, making sounds play forever if you rely on dt.
I've been able to track it down to the pa::StreamCallbackTimeInfo struct given to you by pa::Stream::new(). Printing it out shows time_current: 0, but input_buffer_adc_time seems to count properly. I would assume this is a bug with portaudio-rs, but ¯_(ツ)_/¯
@Norfen ahh thanks for this, will try and track it down soon!