|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSimpleSound
Sound
public class Sound
Class that represents a sound. This class is used by the students to extend the capabilities of SimpleSound. Copyright Georgia Institute of Technology 2004
| Field Summary |
|---|
| Fields inherited from class SimpleSound |
|---|
MAX_NEG, MAX_POS |
| Constructor Summary | |
|---|---|
Sound(int numSamples)
Constructor that takes the number of samples in the sound |
|
Sound(int numSamples,
int sampleRate)
Constructor that takes the number of samples that this sound will have and the sample rate |
|
Sound(Sound copySound)
Constructor that takes a sound to copy |
|
Sound(String fileName)
Constructor that takes a file name |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
|
String |
toString()
Method to return the string representation of this sound |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Sound(String fileName)
fileName - the name of the file to read the sound frompublic Sound(int numSamples)
numSamples - the number of samples desired
public Sound(int numSamples,
int sampleRate)
numSamples - the number of samples desiredsampleRate - the number of samples per secondpublic Sound(Sound copySound)
| Method Detail |
|---|
public String toString()
toString in class SimpleSoundpublic static void main(String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||