@@ -51,11 +51,17 @@ public AudioSample(PApplet parent, int frames, boolean stereo) {
5151 * typically use "this"
5252 * @param frames
5353 * the desired number of frames for this audiosample
54- * @param frameRate
55- * the underlying frame rate of the sample (default: 44100)
54+ * @param data
55+ * an array of float values to be used as this audiosample's sound
56+ * data. The audiosample will consequently have as many frames as the
57+ * length of the given array. To match the default amplitude of
58+ * other sound generators, the sample values should be in the range
59+ * <code>[-0.5, 0.5]</code>
5660 * @param stereo
5761 * whether to treat the audiosample as 2-channel (stereo) or not
58- * (default: false)
62+ * (default: <code>false</code>)
63+ * @param frameRate
64+ * the underlying frame rate of the sample (default: 44100)
5965 * @webref Sampling:AudioSample
6066 * @webBrief Allocate a new audiosample buffer with the given number of frames.
6167 */
@@ -74,12 +80,6 @@ public AudioSample(PApplet parent, int frames, int frameRate) {
7480 // duration)?
7581 // risk of accidental overloading through int/float, but could be interesting..
7682
77- /**
78- * @param data
79- * an array of float values to be used as this audiosample's sound
80- * data. The audiosample will consequently have as many frames as the
81- * length of the given array.
82- */
8383 public AudioSample (PApplet parent , float [] data ) {
8484 this (parent , data , false );
8585 }
0 commit comments