rust-portaudio icon indicating copy to clipboard operation
rust-portaudio copied to clipboard

Callback does not time correctly

Open Mec-iS opened this issue 6 years ago • 1 comments

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

Mec-iS avatar Nov 05 '19 17:11 Mec-iS

Can you give details on what OS and HostApi you are using?

wmedrano avatar Dec 08 '20 15:12 wmedrano