FileDocCategorySizeDatePackage
MpegAudioControl.javaAPI DocJMF 2.1.1e5740Mon May 12 12:20:36 BST 2003javax.media.control

MpegAudioControl

public interface MpegAudioControl implements Control
This interface is a Control for specifying the parameters for MPEG audio.
since
JMF 2.0

Fields Summary
public static final int
LAYER_1
Indicates support for audio layer 1
public static final int
LAYER_2
Indicates support for audio layer 2
public static final int
LAYER_3
Indicates support for audio layer 3
public static final int
SAMPLING_RATE_16
Indicates support for 16 KHz audio sampling rate
public static final int
SAMPLING_RATE_22_05
Indicates support for 22.05 KHz audio sampling rate
public static final int
SAMPLING_RATE_24
Indicates support for 24 KHz audio sampling rate
public static final int
SAMPLING_RATE_32
Indicates support for 32 KHz audio sampling rate
public static final int
SAMPLING_RATE_44_1
Indicates support for 44.1 KHz audio sampling rate
public static final int
SAMPLING_RATE_48
Indicates support for 48 KHz audio sampling rate
public static final int
SINGLE_CHANNEL
Indicates support for single channel layout
public static final int
TWO_CHANNELS_STEREO
Indicates support for two channels stereo layout
public static final int
TWO_CHANNELS_DUAL
Indicates support for two channels dual layout
public static final int
THREE_CHANNELS_2_1
Indicates support for three channels 2-1 layout (Left, Right and single Surround)
public static final int
THREE_CHANNELS_3_0
Indicates support for three channels 3-0 layout (Left, Center and Right)
public static final int
FOUR_CHANNELS_2_0_2_0
Indicates support for four channels 2-0 2-0 layout (Left and Right of first program, Left and Right of second program)
public static final int
FOUR_CHANNELS_2_2
Indicates support for four channels 2-2 layout (Left, Right, Left Surround and Right Surround)
public static final int
FOUR_CHANNELS_3_1
Indicates support for four channels 3-1 layout (Left, Center, Right and single Surround)
public static final int
FIVE_CHANNELS_3_0_2_0
Indicates support for five channels 3-0 2-0 layout (Left, Center and Right of first program, Left and Right of second program)
public static final int
FIVE_CHANNELS_3_2
Indicates support for five channels 3-2 layout (Left, Center, Right, Left Surround and Right surround)
Constructors Summary
Methods Summary
public intgetAudioLayer()
Returns the current MPEG Audio Layer.

public intgetChannelLayout()
Returns the current MPEG Audio channel layout.

public booleangetLowFrequencyChannel()
Returns true if Low Frequency Channel mode is turned on.

public booleangetMultilingualMode()
Returns true if Multilingual mode is turned on.

public intgetSupportedAudioLayers()
Returns the audio layer support capability.
The returned value consists of a logical OR among the relevant flags.

see
#LAYER_1
see
#LAYER_2
see
#LAYER_3

public intgetSupportedChannelLayouts()
Returns the audio channel layout support capability.
The returned value consists of a logical OR among the relevant flags.

see
#SINGLE_CHANNEL
see
#TWO_CHANNELS_STEREO
see
#TWO_CHANNELS_DUAL
see
#THREE_CHANNELS_2_1
see
#THREE_CHANNELS_3_0
see
#FOUR_CHANNELS_2_0_2_0
see
#FOUR_CHANNELS_2_2
see
#FIVE_CHANNELS_3_0_2_0
see
#FIVE_CHANNELS_3_2

public intgetSupportedSamplingRates()
Returns the audio sampling rate support capability.
The returned value consists of a logical OR among the relevant flags.

see
#SAMPLING_RATE_16
see
#SAMPLING_RATE_22_05
see
#SAMPLING_RATE_24
see
#SAMPLING_RATE_32
see
#SAMPLING_RATE_44_1
see
#SAMPLING_RATE_48

public booleanisLowFrequencyChannelSupported()
Returns the low freuqency channel support capability.

public booleanisMultilingualModeSupported()
Returns the multilingual mode support capability.

public intsetAudioLayer(int audioLayer)
Controls the MPEG Audio Layer.

return
the layer which was actually set.

public intsetChannelLayout(int channelLayout)
Controls the MPEG Audio channel layout.

return
the channel layout which was actually set.

public booleansetLowFrequencyChannel(boolean on)
Controls the Low Frequency Channel mode. "true" is on; "false" is off.

return
true if Low Frequency Channel mode is actually turned on.

public booleansetMultilingualMode(boolean on)
Controls the Multilingual mode. "true" is on; "false" is off.

return
true if Multilingual mode is actually turned on.