as.clynx.audio.rep
Interface IAudioFileCollection

All Superinterfaces:
java.util.Collection<AudioFile>, java.lang.Iterable<AudioFile>, java.util.List<AudioFile>
All Known Implementing Classes:
AudioFileList

public interface IAudioFileCollection
extends java.util.List<AudioFile>

The interface IAudioFileCollection.java contains all loaded tracks.

Version:
cLynx v.1.2, JDK 6.0: 12.10.2007
Author:
Andreas Senfter - andreas@senfters.com

Method Summary
 javax.sound.sampled.AudioInputStream decode(AudioFile af)
          returns the decoded audioinputstream for the passed audiofile
 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 the collection
 void stateChangedOf(AudioFile track)
          awakes when the finished or active flag of a track changes.
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

getGlobalTopBound

int getGlobalTopBound()
returns the global upper boundary for the normalizer

Returns:
the upper boundary for the normalizer

getGlobalBotBound

int getGlobalBotBound()
returns the global lower boundary for the normalizer

Returns:
the lower boundary for the normalizer

getSupportedTopRange

int getSupportedTopRange()
returns the supported upper boundary

Returns:
the supported upper boundary

getSupportedBotRange

int getSupportedBotRange()
returns the supported lower boundary

Returns:
the supported lower boundary

decode

javax.sound.sampled.AudioInputStream decode(AudioFile af)
                                            throws javax.sound.sampled.UnsupportedAudioFileException,
                                                   java.io.IOException
returns the decoded audioinputstream for the passed audiofile

Parameters:
af -
Returns:
the decoded audioinputstream for the passed audiofile
Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException

getDecodedFormat

javax.sound.sampled.AudioFormat getDecodedFormat()
returns the decoded format

Returns:
the decoded format

setNormalizer

void setNormalizer()
sets the normalizer to the collection


getSettings

SettingControl getSettings()
returns the settingControl

Returns:
the settingControl

stateChangedOf

void stateChangedOf(AudioFile track)
awakes when the finished or active flag of a track changes.

Parameters:
track -

setNext

void setNext(AudioFile key)
sets the audiofile wich should be played next.

Parameters:
key -

nextExists

boolean nextExists()
returns true when a file was defined which should be played next.

Returns:
true when a file was defined which should be played next.

getNextIndex

int getNextIndex()
returns the index of the file which should played next.

Returns:
the index of the file which should played next.