tlecomte/friture — Issue #26: Need a non-blocking binding to PortAudio
Author: tlecomte
Created: 2012-01-29 19:08:41+00:00
State: open

To implement a "stricly-correct" spectrogram with correct STFT sampling/resampling, I need precise timing information: the time associated with the buffer obtained from stream.read, and the current time (the GUI time). The first one is not available in the blocking mode of PortAudio, but only in the callback mode (see PaStreamCallbackTimeInfo). Unfortunately PyAudio only binds the blocking mode of PortAudio. Fastaudio is a binding for the non-blocking mode, but uses the V18 API which does not provides PaStreamCallbackTimeInfo.

https://github.com/bastibe/PyAudio seems to provide what I need !