|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<AudioFile>
as.clynx.audio.rep.AudioFileList
public class AudioFileList
The class AudioFileList.java contains all loaded audiofiles.
Constructor Summary | |
---|---|
AudioFileList(AbstractDecoder enc,
ListContentProvider provider)
Constructor |
Method Summary | |
---|---|
boolean |
add(AudioFile obj)
adds a audiofile to the list and stores the normalizing values |
javax.sound.sampled.AudioInputStream |
decode(AudioFile af)
returns the decoded audioinputstream for the passed audiofile |
AudioFile |
get(int i)
|
javax.sound.sampled.AudioFormat |
getDecodedFormat()
returns the decoded format |
int |
getGlobalBotBound()
returns the global lower boundary for the normalizer |
int |
getGlobalTopBound()
returns the global upper boundary for the normalizer |
int |
getNextIndex()
returns the index of the file which should played next. |
SettingControl |
getSettings()
returns the settingControl |
int |
getSupportedBotRange()
returns the supported lower boundary |
int |
getSupportedTopRange()
returns the supported upper boundary |
boolean |
nextExists()
returns true when a file was defined which should be played next. |
void |
setNext(AudioFile key)
sets the audiofile wich should be played next. |
void |
setNormalizer()
sets the normalizer to all containing files |
void |
stateChangedOf(AudioFile track)
awakes when the finished or active flag of a track changes. |
Methods inherited from class java.util.ArrayList |
---|
add, addAll, addAll, clear, clone, contains, ensureCapacity, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Constructor Detail |
---|
public AudioFileList(AbstractDecoder enc, ListContentProvider provider)
enc
- provider
- Method Detail |
---|
public void setNormalizer()
setNormalizer
in interface IAudioFileCollection
public boolean add(AudioFile obj)
add
in interface java.util.Collection<AudioFile>
add
in interface java.util.List<AudioFile>
add
in class java.util.ArrayList<AudioFile>
public AudioFile get(int i)
get
in interface java.util.List<AudioFile>
get
in class java.util.ArrayList<AudioFile>
public int getGlobalBotBound()
IAudioFileCollection
getGlobalBotBound
in interface IAudioFileCollection
public int getGlobalTopBound()
IAudioFileCollection
getGlobalTopBound
in interface IAudioFileCollection
public int getSupportedTopRange()
IAudioFileCollection
getSupportedTopRange
in interface IAudioFileCollection
public int getSupportedBotRange()
IAudioFileCollection
getSupportedBotRange
in interface IAudioFileCollection
public javax.sound.sampled.AudioInputStream decode(AudioFile af) throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
IAudioFileCollection
decode
in interface IAudioFileCollection
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
public javax.sound.sampled.AudioFormat getDecodedFormat()
IAudioFileCollection
getDecodedFormat
in interface IAudioFileCollection
public SettingControl getSettings()
IAudioFileCollection
getSettings
in interface IAudioFileCollection
public void stateChangedOf(AudioFile track)
IAudioFileCollection
stateChangedOf
in interface IAudioFileCollection
public void setNext(AudioFile key)
IAudioFileCollection
setNext
in interface IAudioFileCollection
public boolean nextExists()
IAudioFileCollection
nextExists
in interface IAudioFileCollection
public int getNextIndex()
IAudioFileCollection
getNextIndex
in interface IAudioFileCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |