PortAudio / portaudio

PortAudio is a cross-platform, open-source C language library for real-time audio input and output.
Other
1.39k stars 291 forks source link

PaTime is a double representing seconds? #880

Open daveyostcom opened 6 months ago

daveyostcom commented 6 months ago

The source and the documentation should be clear that PaTime is in seconds (or it it milliseconds?).

RossBencina commented 5 months ago

Yes, seconds.

RossBencina commented 5 months ago

@daveyostcom Why do you say that the documentation does not indicate the units? It seems to be in the first sentence, from line 456 of portaudio.h. Which docs are you referencing?

/** The type used to represent monotonic time in seconds. PaTime is
 used for the fields of the PaStreamCallbackTimeInfo argument to the
 PaStreamCallback and as the result of Pa_GetStreamTime().

 PaTime values have unspecified origin.

 @see PaStreamCallback, PaStreamCallbackTimeInfo, Pa_GetStreamTime
*/
typedef double PaTime;