javaFlacEncoder
Enum EncodingConfiguration.ChannelConfig

java.lang.Object
  extended by java.lang.Enum<EncodingConfiguration.ChannelConfig>
      extended by javaFlacEncoder.EncodingConfiguration.ChannelConfig
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EncodingConfiguration.ChannelConfig>
Enclosing class:
EncodingConfiguration

public static enum EncodingConfiguration.ChannelConfig
extends java.lang.Enum<EncodingConfiguration.ChannelConfig>

Defines the options for channel configuration to use. LEFT & RIGHT channels refers to stereo audio as expected. INDEPENDENT channels refer to each channel encoded separately. SIDE channel is the difference of the LEFT and RIGHT channels(LEFT-RIGHT). MID channel is the integer average of LEFT and RIGHT channels( (LEFT+RIGHT)/2 ). Options using MID and/or SIDE channels may benefit encoding by taking advantage of similarities between the channels, and are available in FLAC for STEREO streams only. In general, ENCODER_CHOICE should be chosen.


Enum Constant Summary
ENCODER_CHOICE
          Let the encoder decide which to use.(recommended)
EXHAUSTIVE
          Encode all options possible, and take the best(slow)
INDEPENDENT
          Encode channels independently
LEFT_SIDE
          Encode LEFT and SIDE channels for stereo stream
MID_SIDE
          Encode MID and SIDE channels for stereo stream
RIGHT_SIDE
          Encode RIGHT and SIDE channels for stereo stream
 
Method Summary
static EncodingConfiguration.ChannelConfig valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EncodingConfiguration.ChannelConfig[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INDEPENDENT

public static final EncodingConfiguration.ChannelConfig INDEPENDENT
Encode channels independently


LEFT_SIDE

public static final EncodingConfiguration.ChannelConfig LEFT_SIDE
Encode LEFT and SIDE channels for stereo stream


RIGHT_SIDE

public static final EncodingConfiguration.ChannelConfig RIGHT_SIDE
Encode RIGHT and SIDE channels for stereo stream


MID_SIDE

public static final EncodingConfiguration.ChannelConfig MID_SIDE
Encode MID and SIDE channels for stereo stream


EXHAUSTIVE

public static final EncodingConfiguration.ChannelConfig EXHAUSTIVE
Encode all options possible, and take the best(slow)


ENCODER_CHOICE

public static final EncodingConfiguration.ChannelConfig ENCODER_CHOICE
Let the encoder decide which to use.(recommended)

Method Detail

values

public static EncodingConfiguration.ChannelConfig[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EncodingConfiguration.ChannelConfig c : EncodingConfiguration.ChannelConfig.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EncodingConfiguration.ChannelConfig valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null