|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object group1.view.audio.AudioCache
public class AudioCache
A class used to cache a single audio file. Stores the audio data as a byte array.
Constructor Summary | |
---|---|
AudioCache(Audio a)
Constructor. |
Method Summary | |
---|---|
byte[] |
getAudioData()
A method to directly return the byte array of audio data. |
javax.sound.sampled.AudioInputStream |
getAudioInputStream()
A method to get an AudioInputStream to play the audio data. |
javax.sound.sampled.AudioFormat |
getFormat()
Get the associated audio format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AudioCache(Audio a) throws java.io.FileNotFoundException
fileName
- The enum type for the audio.looping
- If the audio clip should be looped.
java.io.FileNotFoundException
Method Detail |
---|
public byte[] getAudioData()
public javax.sound.sampled.AudioInputStream getAudioInputStream()
public javax.sound.sampled.AudioFormat getFormat()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |