rust-portaudio
rust-portaudio copied to clipboard
Callback does not time correctly
As found in RustAudio/synth -> https://github.com/RustAudio/synth/issues/50
At this line of the example whenever a synth is started sounds never stop playing as the time and the counter do not flow:
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.0016780045351473924 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.00022675736961451248 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.0016780045351473924 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.00022675736961451248 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.0016780045351473924 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.00022675736961451248 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.0016780045351473924 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.00022675736961451248 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.0016780045351473924 }
TIMER >>>>>>>> 0.0
Can you give details on what OS and HostApi you are using?