as.clynx.util
Class Constant

java.lang.Object
  extended by as.clynx.util.Constant
All Implemented Interfaces:
SettingControl

public class Constant
extends java.lang.Object
implements SettingControl

The class Constant.java provides all constants of the tool. it implements the SettingControl interface and provides all parameters of the propertyfile in consolemode.

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

Field Summary
static int ANALYSER_MIN_MAX
           
static int ANALYSER_NONE
          ANALYSER TYP
static int ANALYSER_STD
           
static int ATTACK_TIME
           
static int CHANNEL_NO
           
static int COMPRESSION
           
static java.lang.String COORDINATE_FILE
           
static int DIST_MUX
           
static int DISTANCE_CHANNELS
           
static int DURATION
           
static int FADE_TIME
           
static java.lang.String LANGUAGE_DIR
           
static int MASTER_VOLUME
           
static int MEAN_ARITHMETIC
          MEAN CALCULATION TYP
static int MEAN_RMS
           
static int MUX_DM
           
static int MUX_DS
           
static int MUX_SM
           
static int MUX_SS
          MULTIPLEXER TYP
static int NORMALIZER_COMPRESSOR
           
static int NORMALIZER_LIN_AMPL
           
static int NORMALIZER_NONE
          NORMALIZER TYP
static int RATIO
           
static int RELEASE_TIME
           
static boolean REPEAT_PLAYBACK
           
static java.lang.String START_PARAMS_FILE
           
static int VOLUME
           
 
Method Summary
 AbstractAnalyser getAnalyser(javax.sound.sampled.AudioFormat format)
          returns the defined analyser.
 int getAnalyserType()
          returns the analyser type.
 int getAttackTimeInMilis()
          returns the attacktime in milisecond.
 float getCompression()
          returns the compressionrate for the compressor.
 int getDistanceChannels()
          returns the number of target channels for the distancemixer.
 float getDurationInSeconds()
          time a track is played before change in seconds.
 float getFadeTimeInSeconds()
          time it takes for the crossfade of two tracks in seconds.
 float getMasterFadeInInSeconds()
          returns the master fadeIn duration in seconds.
 int getMasterVolume()
          returns the master volume.
 AbstractMUX getMultiplexer(IAudioFileCollection list)
          returns the defined mux.
 int getMuxType()
          returns the mux type.
 INormalizer getNormalizer(IAudioFileCollection collection)
          returns the defined Normalizer.
 int getReleaseTimeInMilis()
          returns the releasetime in miliseconds.
 java.io.File getSampleDirectory()
          returns the directory of audiofiles.
 int getTargetChannelNO()
          returns the number of channels for the sequence dynamic mux.
 boolean getThreadLoading()
          returns true when threadloading is enabled.
 int getThreadNO()
          returns the number of parallel analysed tracks when threadLoading is enabled.
 java.util.Set<java.lang.String> getValidSoundFileExtensions()
          returns all valid fileextensions.
 int getVolume()
          returns the volume.
static Constant loadInstance(java.lang.String props_dir)
          static loader
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RATIO

public static final int RATIO
See Also:
Constant Field Values

ATTACK_TIME

public static final int ATTACK_TIME
See Also:
Constant Field Values

RELEASE_TIME

public static final int RELEASE_TIME
See Also:
Constant Field Values

DURATION

public static final int DURATION
See Also:
Constant Field Values

FADE_TIME

public static final int FADE_TIME
See Also:
Constant Field Values

VOLUME

public static final int VOLUME
See Also:
Constant Field Values

CHANNEL_NO

public static final int CHANNEL_NO
See Also:
Constant Field Values

COMPRESSION

public static final int COMPRESSION
See Also:
Constant Field Values

DISTANCE_CHANNELS

public static final int DISTANCE_CHANNELS
See Also:
Constant Field Values

MASTER_VOLUME

public static final int MASTER_VOLUME
See Also:
Constant Field Values

MUX_SS

public static final int MUX_SS
MULTIPLEXER TYP

See Also:
Constant Field Values

MUX_DS

public static final int MUX_DS
See Also:
Constant Field Values

MUX_SM

public static final int MUX_SM
See Also:
Constant Field Values

MUX_DM

public static final int MUX_DM
See Also:
Constant Field Values

DIST_MUX

public static final int DIST_MUX
See Also:
Constant Field Values

ANALYSER_NONE

public static final int ANALYSER_NONE
ANALYSER TYP

See Also:
Constant Field Values

ANALYSER_MIN_MAX

public static final int ANALYSER_MIN_MAX
See Also:
Constant Field Values

ANALYSER_STD

public static final int ANALYSER_STD
See Also:
Constant Field Values

MEAN_ARITHMETIC

public static final int MEAN_ARITHMETIC
MEAN CALCULATION TYP

See Also:
Constant Field Values

MEAN_RMS

public static final int MEAN_RMS
See Also:
Constant Field Values

NORMALIZER_NONE

public static final int NORMALIZER_NONE
NORMALIZER TYP

See Also:
Constant Field Values

NORMALIZER_LIN_AMPL

public static final int NORMALIZER_LIN_AMPL
See Also:
Constant Field Values

NORMALIZER_COMPRESSOR

public static final int NORMALIZER_COMPRESSOR
See Also:
Constant Field Values

COORDINATE_FILE

public static final java.lang.String COORDINATE_FILE
See Also:
Constant Field Values

START_PARAMS_FILE

public static java.lang.String START_PARAMS_FILE

LANGUAGE_DIR

public static final java.lang.String LANGUAGE_DIR
See Also:
Constant Field Values

REPEAT_PLAYBACK

public static boolean REPEAT_PLAYBACK
Method Detail

loadInstance

public static Constant loadInstance(java.lang.String props_dir)
                             throws InvalidPropertiesException,
                                    java.io.IOException
static loader

Returns:
a Constance instance
Throws:
java.io.IOException
java.io.FileNotFoundException
java.io.IOException
InvalidPropertiesException

getValidSoundFileExtensions

public java.util.Set<java.lang.String> getValidSoundFileExtensions()
returns all valid fileextensions.


getSampleDirectory

public java.io.File getSampleDirectory()
returns the directory of audiofiles.

Returns:
the directory of audiofiles.

getDurationInSeconds

public float getDurationInSeconds()
Description copied from interface: SettingControl
time a track is played before change in seconds.

Specified by:
getDurationInSeconds in interface SettingControl
Returns:
the time a track is played before change in seconds.

getMasterFadeInInSeconds

public float getMasterFadeInInSeconds()
Description copied from interface: SettingControl
returns the master fadeIn duration in seconds.

Specified by:
getMasterFadeInInSeconds in interface SettingControl
Returns:
the master fadeIn duration in seconds.

getFadeTimeInSeconds

public float getFadeTimeInSeconds()
Description copied from interface: SettingControl
time it takes for the crossfade of two tracks in seconds.

Specified by:
getFadeTimeInSeconds in interface SettingControl
Returns:
the time it takes for the crossfade of two tracks in seconds.

getTargetChannelNO

public int getTargetChannelNO()
Description copied from interface: SettingControl
returns the number of channels for the sequence dynamic mux.

Specified by:
getTargetChannelNO in interface SettingControl
Returns:
the number of channels for the sequence dynamic mux.

getVolume

public int getVolume()
Description copied from interface: SettingControl
returns the volume.

Specified by:
getVolume in interface SettingControl
Returns:
the volume.

getMasterVolume

public int getMasterVolume()
Description copied from interface: SettingControl
returns the master volume.

Specified by:
getMasterVolume in interface SettingControl
Returns:
the volume.

getCompression

public float getCompression()
Description copied from interface: SettingControl
returns the compressionrate for the compressor.

Specified by:
getCompression in interface SettingControl
Returns:
the compressionrate for the compressor.

getAttackTimeInMilis

public int getAttackTimeInMilis()
Description copied from interface: SettingControl
returns the attacktime in milisecond.

Specified by:
getAttackTimeInMilis in interface SettingControl
Returns:
the attacktime in milisecond.

getReleaseTimeInMilis

public int getReleaseTimeInMilis()
Description copied from interface: SettingControl
returns the releasetime in miliseconds.

Specified by:
getReleaseTimeInMilis in interface SettingControl
Returns:
the releasetime in miliseconds.

getMultiplexer

public AbstractMUX getMultiplexer(IAudioFileCollection list)
Description copied from interface: SettingControl
returns the defined mux.

Specified by:
getMultiplexer in interface SettingControl
Returns:
the defined mux.

getDistanceChannels

public int getDistanceChannels()
Description copied from interface: SettingControl
returns the number of target channels for the distancemixer.

Specified by:
getDistanceChannels in interface SettingControl
Returns:
the number of target channels for the distancemixer.

getMuxType

public int getMuxType()
Description copied from interface: SettingControl
returns the mux type.

Specified by:
getMuxType in interface SettingControl
Returns:
the mux type.

getAnalyser

public AbstractAnalyser getAnalyser(javax.sound.sampled.AudioFormat format)
Description copied from interface: SettingControl
returns the defined analyser.

Specified by:
getAnalyser in interface SettingControl
Returns:
the defined analyser.

getAnalyserType

public int getAnalyserType()
Description copied from interface: SettingControl
returns the analyser type.

Specified by:
getAnalyserType in interface SettingControl
Returns:
the analyser type.

getNormalizer

public INormalizer getNormalizer(IAudioFileCollection collection)
Description copied from interface: SettingControl
returns the defined Normalizer.

Specified by:
getNormalizer in interface SettingControl
Returns:
the defined Normalizer.

getThreadLoading

public boolean getThreadLoading()
Description copied from interface: SettingControl
returns true when threadloading is enabled.

Specified by:
getThreadLoading in interface SettingControl
Returns:
true when threadloading is enabled.

getThreadNO

public int getThreadNO()
Description copied from interface: SettingControl
returns the number of parallel analysed tracks when threadLoading is enabled.

Specified by:
getThreadNO in interface SettingControl
Returns:
the number of parallel analysed tracks when threadLoading is enabled.