computeFrames method
Compute the number of frames from format.
Implementation
int computeFrames(AudioFormat format) {
return (seconds * format.sampleRate * format.sampleFormat.size * format.channels) ~/ format.bytesPerFrame;
}
Compute the number of frames from format.
int computeFrames(AudioFormat format) {
return (seconds * format.sampleRate * format.sampleFormat.size * format.channels) ~/ format.bytesPerFrame;
}