javazoom.jl.decoder
public class OutputChannels extends Object
Since: 0.0.7
Field Summary | |
---|---|
static OutputChannels | BOTH |
static int | BOTH_CHANNELS
Flag to indicate output should include both channels. |
static OutputChannels | DOWNMIX |
static int | DOWNMIX_CHANNELS
Flag to indicate output is mono. |
static OutputChannels | LEFT |
static int | LEFT_CHANNEL
Flag to indicate output should include the left channel only. |
static OutputChannels | RIGHT |
static int | RIGHT_CHANNEL
Flag to indicate output should include the right channel only. |
Method Summary | |
---|---|
boolean | equals(Object o) |
static OutputChannels | fromInt(int code)
Creates an OutputChannels instance
corresponding to the given channel code.
|
int | getChannelCount()
Retrieves the number of output channels represented
by this channel output type.
|
int | getChannelsOutputCode()
Retrieves the code representing the desired output channels.
|
int | hashCode() |
OutputChannels
instance
corresponding to the given channel code.
Parameters: code one of the OutputChannels channel code constants.
Throws: IllegalArgumentException if code is not a valid channel code.
Returns: The number of output channels for this channel output type. This will be 2 for BOTH_CHANNELS only, and 1 for all other types.
Returns: the channel code represented by this instance.