|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectas.clynx.audio.rep.AudioFile
public class AudioFile
The class AudioFile.java represents a loaded audioinstance.
Constructor Summary | |
---|---|
AudioFile(java.io.File file,
Position2D position,
IAudioFileCollection parent)
Constructor |
Method Summary | |
---|---|
float |
getDistance()
returns the distance to the center. if position was not defined. distance is 0. |
javax.sound.sampled.AudioFormat |
getFormat()
returns the format of the decoded audiofilestream |
int |
getMaxSampleValue()
returns the upper bound of the analyser |
int |
getMinSampleValue()
returns the lower bound of the analyser |
java.awt.Point |
getPosition()
returns the position of the audiofile. if position was not defined return center. |
javax.sound.sampled.AudioInputStream |
getStream()
returns the decoded audiofilestream |
java.io.File |
getUrl()
returns the url of the file |
boolean |
isActive()
returns true when the playback of this track takes place. |
boolean |
isFinished()
returns true when the stream is closed. |
int |
louder(int sample,
float d)
normalizes and enlouds the sample |
int |
normalize(int sample)
normalizes the passed sample |
void |
resetStream()
resets the decoded audiofilestream |
void |
setActive(boolean b)
sets the active flag. |
void |
setFinished(boolean b)
sets the finished flag. |
void |
setNormalizer(INormalizer normalizer)
set the normalizer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AudioFile(java.io.File file, Position2D position, IAudioFileCollection parent) throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
file
- position
- parent
-
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
Method Detail |
---|
public javax.sound.sampled.AudioInputStream getStream()
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
public void resetStream()
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
public javax.sound.sampled.AudioFormat getFormat()
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException
public int normalize(int sample)
sample
-
public int louder(int sample, float d)
public void setNormalizer(INormalizer normalizer)
normalizer
- public java.io.File getUrl()
public int getMaxSampleValue()
public int getMinSampleValue()
public float getDistance()
public java.awt.Point getPosition()
public boolean isFinished()
public void setFinished(boolean b)
b
- public boolean isActive()
public void setActive(boolean b)
b
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |