In audio processing, say the underling library (PortAudio, in my case) gives me a binary, which represents a few seconds of audio captured from a mic, and when it is captured, it used a sample rate of sr
, and the underling library tells me that this binary consists nf
number of frames, can I safely assume that the duration of the audio that the binary represents is nf / sr
seconds?
In another word, if I use a sample rate of sr
, can I safely assume that I will get sr
samples per seconds? Will the hardware drop some samples due to some factors (like for limiting power consumption, etc.)?