|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SoundSample
Class that represents a sample of a sound. It knows what sound object it comes from and knows what frame number this sample is in the sound object. Copyright Georgia Institute of Technology 2004
Constructor Summary | |
SoundSample(SimpleSound sound,
int frameNumber)
Constructor that takes a sound and valueArray |
Method Summary | |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SoundSample(SimpleSound sound, int frameNumber)
sound
- the sound object this sample comes fromframeNumber
- the frameNumber of this sample in the soundMethod Detail |
public int getValue()
public void setValue(int value)
value
- the value to usepublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |