javazoom.jl.decoder
Class OutputChannels
java.lang.Object
javazoom.jl.decoder.OutputChannels
public class OutputChannels
extends java.lang.Object
A Type-safe representation of the the supported output channel
constants.
This class is immutable and, hence, is thread safe.
BOTH_CHANNELS
public static final int BOTH_CHANNELS
Flag to indicate output should include both channels.
DOWNMIX_CHANNELS
public static final int DOWNMIX_CHANNELS
Flag to indicate output is mono.
LEFT_CHANNEL
public static final int LEFT_CHANNEL
Flag to indicate output should include the left channel only.
RIGHT_CHANNEL
public static final int RIGHT_CHANNEL
Flag to indicate output should include the right channel only.
equals
public boolean equals(Object o)
fromInt
public static OutputChannels fromInt(int code)
Creates an OutputChannels
instance
corresponding to the given channel code.
code
- one of the OutputChannels channel code constants.
getChannelCount
public int getChannelCount()
Retrieves the number of output channels represented
by this channel output type.
- The number of output channels for this channel output
type. This will be 2 for BOTH_CHANNELS only, and 1
for all other types.
getChannelsOutputCode
public int getChannelsOutputCode()
Retrieves the code representing the desired output channels.
Will be one of LEFT_CHANNEL, RIGHT_CHANNEL, BOTH_CHANNELS
or DOWNMIX_CHANNELS.
- the channel code represented by this instance.
hashCode
public int hashCode()
JavaZOOM 1999-2005