Reference+
Name
frames()
Class
AudioSample
Description
Returns the number of frames of the audiosample as an int.
Examples
import processing.sound.*; AudioSample sample; void setup() { size(640, 360); background(255); // Create an audiosample sample = new AudioSample(this, 100000); println("Number of audio frames: " + sample.frames()); } void draw() { }
Syntax
audiosample.frames()
Return
int
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.