javax.media.control
Interface MpegAudioControl


public interface MpegAudioControl
extends Control

This interface is a Control for specifying the parameters for MPEG audio.

Since:
JMF 2.0

Field Summary
static 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)
static int FIVE_CHANNELS_3_2
          Indicates support for five channels 3-2 layout (Left, Center, Right, Left Surround and Right surround)
static 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)
static int FOUR_CHANNELS_2_2
          Indicates support for four channels 2-2 layout (Left, Right, Left Surround and Right Surround)
static int FOUR_CHANNELS_3_1
          Indicates support for four channels 3-1 layout (Left, Center, Right and single Surround)
static int LAYER_1
          Indicates support for audio layer 1
static int LAYER_2
          Indicates support for audio layer 2
static int LAYER_3
          Indicates support for audio layer 3
static int SAMPLING_RATE_16
          Indicates support for 16 KHz audio sampling rate
static int SAMPLING_RATE_22_05
          Indicates support for 22.05 KHz audio sampling rate
static int SAMPLING_RATE_24
          Indicates support for 24 KHz audio sampling rate
static int SAMPLING_RATE_32
          Indicates support for 32 KHz audio sampling rate
static int SAMPLING_RATE_44_1
          Indicates support for 44.1 KHz audio sampling rate
static int SAMPLING_RATE_48
          Indicates support for 48 KHz audio sampling rate
static int SINGLE_CHANNEL
          Indicates support for single channel layout
static int THREE_CHANNELS_2_1
          Indicates support for three channels 2-1 layout (Left, Right and single Surround)
static int THREE_CHANNELS_3_0
          Indicates support for three channels 3-0 layout (Left, Center and Right)
static int TWO_CHANNELS_DUAL
          Indicates support for two channels dual layout
static int TWO_CHANNELS_STEREO
          Indicates support for two channels stereo layout
 
Method Summary
 int getAudioLayer()
          Returns the current MPEG Audio Layer.
 int getChannelLayout()
          Returns the current MPEG Audio channel layout.
 boolean getLowFrequencyChannel()
          Returns true if Low Frequency Channel mode is turned on.
 boolean getMultilingualMode()
          Returns true if Multilingual mode is turned on.
 int getSupportedAudioLayers()
          Returns the audio layer support capability.
The returned value consists of a logical OR among the relevant flags.
 int getSupportedChannelLayouts()
          Returns the audio channel layout support capability.
The returned value consists of a logical OR among the relevant flags.
 int getSupportedSamplingRates()
          Returns the audio sampling rate support capability.
The returned value consists of a logical OR among the relevant flags.
 boolean isLowFrequencyChannelSupported()
          Returns the low freuqency channel support capability.
 boolean isMultilingualModeSupported()
          Returns the multilingual mode support capability.
 int setAudioLayer(int audioLayer)
          Controls the MPEG Audio Layer.
 int setChannelLayout(int channelLayout)
          Controls the MPEG Audio channel layout.
 boolean setLowFrequencyChannel(boolean on)
          Controls the Low Frequency Channel mode.
 boolean setMultilingualMode(boolean on)
          Controls the Multilingual mode.
 
Methods inherited from interface javax.media.Control
getControlComponent
 

Field Detail

LAYER_1

public static final int LAYER_1
Indicates support for audio layer 1

LAYER_2

public static final int LAYER_2
Indicates support for audio layer 2

LAYER_3

public static final int LAYER_3
Indicates support for audio layer 3

SAMPLING_RATE_16

public static final int SAMPLING_RATE_16
Indicates support for 16 KHz audio sampling rate

SAMPLING_RATE_22_05

public static final int SAMPLING_RATE_22_05
Indicates support for 22.05 KHz audio sampling rate

SAMPLING_RATE_24

public static final int SAMPLING_RATE_24
Indicates support for 24 KHz audio sampling rate

SAMPLING_RATE_32

public static final int SAMPLING_RATE_32
Indicates support for 32 KHz audio sampling rate

SAMPLING_RATE_44_1

public static final int SAMPLING_RATE_44_1
Indicates support for 44.1 KHz audio sampling rate

SAMPLING_RATE_48

public static final int SAMPLING_RATE_48
Indicates support for 48 KHz audio sampling rate

SINGLE_CHANNEL

public static final int SINGLE_CHANNEL
Indicates support for single channel layout

TWO_CHANNELS_STEREO

public static final int TWO_CHANNELS_STEREO
Indicates support for two channels stereo layout

TWO_CHANNELS_DUAL

public static final int TWO_CHANNELS_DUAL
Indicates support for two channels dual layout

THREE_CHANNELS_2_1

public static final int THREE_CHANNELS_2_1
Indicates support for three channels 2-1 layout (Left, Right and single Surround)

THREE_CHANNELS_3_0

public static final int THREE_CHANNELS_3_0
Indicates support for three channels 3-0 layout (Left, Center and Right)

FOUR_CHANNELS_2_0_2_0

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)

FOUR_CHANNELS_2_2

public static final int FOUR_CHANNELS_2_2
Indicates support for four channels 2-2 layout (Left, Right, Left Surround and Right Surround)

FOUR_CHANNELS_3_1

public static final int FOUR_CHANNELS_3_1
Indicates support for four channels 3-1 layout (Left, Center, Right and single Surround)

FIVE_CHANNELS_3_0_2_0

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)

FIVE_CHANNELS_3_2

public static final int FIVE_CHANNELS_3_2
Indicates support for five channels 3-2 layout (Left, Center, Right, Left Surround and Right surround)
Method Detail

getSupportedAudioLayers

public int getSupportedAudioLayers()
Returns the audio layer support capability.
The returned value consists of a logical OR among the relevant flags.
See Also:
LAYER_1, LAYER_2, LAYER_3

getSupportedSamplingRates

public int getSupportedSamplingRates()
Returns the audio sampling rate support capability.
The returned value consists of a logical OR among the relevant flags.
See Also:
SAMPLING_RATE_16, SAMPLING_RATE_22_05, SAMPLING_RATE_24, SAMPLING_RATE_32, SAMPLING_RATE_44_1, SAMPLING_RATE_48

getSupportedChannelLayouts

public int getSupportedChannelLayouts()
Returns the audio channel layout support capability.
The returned value consists of a logical OR among the relevant flags.
See Also:
SINGLE_CHANNEL, TWO_CHANNELS_STEREO, TWO_CHANNELS_DUAL, THREE_CHANNELS_2_1, THREE_CHANNELS_3_0, FOUR_CHANNELS_2_0_2_0, FOUR_CHANNELS_2_2, FIVE_CHANNELS_3_0_2_0, FIVE_CHANNELS_3_2

isLowFrequencyChannelSupported

public boolean isLowFrequencyChannelSupported()
Returns the low freuqency channel support capability.

isMultilingualModeSupported

public boolean isMultilingualModeSupported()
Returns the multilingual mode support capability.

setAudioLayer

public int setAudioLayer(int audioLayer)
Controls the MPEG Audio Layer.
Returns:
the layer which was actually set.

getAudioLayer

public int getAudioLayer()
Returns the current MPEG Audio Layer.

setChannelLayout

public int setChannelLayout(int channelLayout)
Controls the MPEG Audio channel layout.
Returns:
the channel layout which was actually set.

getChannelLayout

public int getChannelLayout()
Returns the current MPEG Audio channel layout.

setLowFrequencyChannel

public boolean setLowFrequencyChannel(boolean on)
Controls the Low Frequency Channel mode. "true" is on; "false" is off.
Returns:
true if Low Frequency Channel mode is actually turned on.

getLowFrequencyChannel

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

setMultilingualMode

public boolean setMultilingualMode(boolean on)
Controls the Multilingual mode. "true" is on; "false" is off.
Returns:
true if Multilingual mode is actually turned on.

getMultilingualMode

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


Submit a bug or feature
Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.