Class Sound

java.lang.Object
  extended bySimpleSound
      extended bySound

public class Sound
extends SimpleSound

Class that represents a sound. This class is used by the students to extend the capabilities of SimpleSound. Copyright Georgia Institute of Technology 2004

Author:
Barbara Ericson ericson@cc.gatech.edu

Constructor Summary
Sound(int numSeconds)
          Constructor that takes the number of seconds that this sound will have
Sound(Sound copySound)
          Constructor that takes a sound to copy
Sound(java.lang.String fileName)
          Constructor that takes a file name
 
Method Summary
 java.lang.String toString()
          Method to return the string representation of this sound
 
Methods inherited from class SimpleSound
asArray, blockingPlay, blockingPlayAtRateDur, blockingPlayAtRateInRange, blockingPlayOld, convert, explore, getAudioFileFormat, getBuffer, getChannels, getDEBUG, getFileName, getFrame, getLeftSample, getLength, getLengthInBytes, getLengthInFrames, getNumSamples, getPlaybacks, getRightSample, getSample, getSamples, getSampleValue, getSampleValueAt, getSamplingRate, getSoundExplorer, isStereo, loadFromFile, makeAIS, play, playAtRateDur, playAtRateInRange, playAtRateInRange, playNote, printError, printError, removePlayback, setAudioFileFormat, setBuffer, setFrame, setLeftSample, setRightSample, setSampleValue, setSampleValueAt, setSoundExplorer, write, writeToFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sound

public Sound(java.lang.String fileName)
Constructor that takes a file name

Parameters:
fileName - the name of the file to read the sound from

Sound

public Sound(int numSeconds)
Constructor that takes the number of seconds that this sound will have

Parameters:
numSeconds - the number of seconds desired

Sound

public Sound(Sound copySound)
Constructor that takes a sound to copy

Method Detail

toString

public java.lang.String toString()
Method to return the string representation of this sound

Overrides:
toString in class SimpleSound
Returns:
a string with information about this sound