public class Samples
extends java.lang.Object
Constructor | Description |
---|---|
Samples(Sound aSound) |
Constructor that takes a sound
|
Modifier and Type | Method | Description |
---|---|---|
Sample |
getSample(int index) |
Method to get a specific Sample
|
static Sample[] |
getSamples(Sound aSound) |
Method to get the array of samples from a sound
|
Sound |
getSound() |
Method to get these Samples' sound object
|
void |
setSample(int index,
double value) |
Method to set the value of a specific Sample
|
void |
setSample(int index,
int value) |
Method to set the value of a specific Sample
|
java.lang.String |
toString() |
Obtains a string representation of this array of Samples.
|
public Samples(Sound aSound)
aSound
- the soundpublic static Sample[] getSamples(Sound aSound)
aSound
- the soundpublic java.lang.String toString()
toString
in class java.lang.Object
public Sample getSample(int index)
index
- the index to get the sample frompublic void setSample(int index, int value) throws SoundException
index
- the index to get the samplevalue
- the value to set it toSoundException
public void setSample(int index, double value) throws SoundException
index
- the index to get the samplevalue
- the value to set it toSoundException
public Sound getSound()