Open csarami opened 3 years ago
Inside your callback()
function, the time
parameter is shadowing the time
module.
However, if you want to use the timing information from PortAudio, you should not mix it with the time
module, because those times are not compatible.
But you can use the information from Stream.time
, which is compatible with the time
parameter of the callback function.
See also https://stackoverflow.com/q/66286390/.
Hi,
I am on macOS Mojave and trying to type-specific moments. In my application that I am developing, I need to store the times after a specific action/function is triggered in the callback function and other functions in a python module. My goal is to create three different plots on the same time axis.
I understand that: The time (in callback arg list) values are monotonically increasing and have the unspecified origin which is time.currentTime from the callback argument. I also read:
one way would be using the same timing in callback function and other functions as in:
However, this produce error below:
So for the development purposes what do you guys recommend for the timing of the steam and other actions as the audio steams input is processed say from a microphone?
Any help would be much appreciated.