public class SoundSample
extends java.lang.Object
Constructor | Description |
---|---|
SoundSample(SimpleSound sound,
int frameNumber) |
Constructor that takes a sound and valueArray
|
Modifier and Type | Method | Description |
---|---|---|
int |
getValue() |
Method to get the value of this sample as in int
and handle the possible sound exception
|
void |
setValue(int value) |
Method to set the value of this sample and
handle the sound exception
|
java.lang.String |
toString() |
Method to return a string with the information about
this object
|
public SoundSample(SimpleSound sound, int frameNumber)
sound
- the sound object this sample comes fromframeNumber
- the frameNumber of this sample in the soundpublic int getValue()
public void setValue(int value)
value
- the value to usepublic java.lang.String toString()
toString
in class java.lang.Object