sound_stream icon indicating copy to clipboard operation
sound_stream copied to clipboard

dt is always 0

Open seeday opened this issue 10 years ago • 1 comments

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 ¯_(ツ)_/¯

seeday avatar Oct 26 '15 04:10 seeday

@Norfen ahh thanks for this, will try and track it down soon!

mitchmindtree avatar Oct 26 '15 04:10 mitchmindtree