|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSoundSample
public class 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 |
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 sound| Method Detail |
|---|
public int getValue()
public void setValue(int value)
value - the value to usepublic String toString()
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||