Java DTV API 1.3
18-Nov-2009

com.sun.dtv.media.control
Interface MpegAudioControl

All Superinterfaces:
Control

public interface MpegAudioControl
extends Control

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


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, or -1 if the Audio Layer is not available.
 int getChannelLayout()
          Returns the current MPEG Audio channel layout, or -1 if the channel layout is not available.
 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.
 int getSupportedChannelLayouts()
          Returns the audio channel layout support capability.
 int getSupportedSamplingRates()
          Returns the audio sampling rate support capability.
 boolean isLowFrequencyChannelSupported()
          Returns the low frequency channel support capability.
 boolean isMultilingualModeSupported()
          Returns the multilingual mode support capability.
 
Methods inherited from interface javax.media.Control
getControlComponent
 

Field Detail

LAYER_1

static final int LAYER_1
Indicates support for audio layer 1.

See Also:
Constant Field Values

LAYER_2

static final int LAYER_2
Indicates support for audio layer 2.

See Also:
Constant Field Values

LAYER_3

static final int LAYER_3
Indicates support for audio layer 3.

See Also:
Constant Field Values

SAMPLING_RATE_16

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

See Also:
Constant Field Values

SAMPLING_RATE_22_05

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

See Also:
Constant Field Values

SAMPLING_RATE_24

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

See Also:
Constant Field Values

SAMPLING_RATE_32

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

See Also:
Constant Field Values

SAMPLING_RATE_44_1

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

See Also:
Constant Field Values

SAMPLING_RATE_48

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

See Also:
Constant Field Values

SINGLE_CHANNEL

static final int SINGLE_CHANNEL
Indicates support for single channel layout.

See Also:
Constant Field Values

TWO_CHANNELS_STEREO

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

See Also:
Constant Field Values

TWO_CHANNELS_DUAL

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

See Also:
Constant Field Values

THREE_CHANNELS_2_1

static final int THREE_CHANNELS_2_1
Indicates support for three channels 2-1 layout: Left, Right and single Surround.

See Also:
Constant Field Values

THREE_CHANNELS_3_0

static final int THREE_CHANNELS_3_0
Indicates support for three channels 3-0 layout: Left, Center and Right.

See Also:
Constant Field Values

FOUR_CHANNELS_2_0_2_0

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.

See Also:
Constant Field Values

FOUR_CHANNELS_2_2

static final int FOUR_CHANNELS_2_2
Indicates support for four channels 2-2 layout: Left, Right, Left Surround and Right Surround.

See Also:
Constant Field Values

FOUR_CHANNELS_3_1

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

See Also:
Constant Field Values

FIVE_CHANNELS_3_0_2_0

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.

See Also:
Constant Field Values

FIVE_CHANNELS_3_2

static final int FIVE_CHANNELS_3_2
Indicates support for five channels 3-2 layout: Left, Center, Right, Left Surround and Right surround.

See Also:
Constant Field Values
Method Detail

getSupportedAudioLayers

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

Returns:
the supported audio layer.
See Also:
LAYER_1, LAYER_2, LAYER_3

getSupportedSamplingRates

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

Returns:
the supported sampling rates.
See Also:
SAMPLING_RATE_16, SAMPLING_RATE_22_05, SAMPLING_RATE_24, SAMPLING_RATE_32, SAMPLING_RATE_44_1, SAMPLING_RATE_48

getSupportedChannelLayouts

int getSupportedChannelLayouts()
Returns the audio channel layout support capability.
The returned value consists of a logical OR among the relevant flags, or -1 if the information is not available.

Returns:
the supported channel layout.
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

boolean isLowFrequencyChannelSupported()
Returns the low frequency channel support capability.

Returns:
true if low frequency channel is supported.

isMultilingualModeSupported

boolean isMultilingualModeSupported()
Returns the multilingual mode support capability.

Returns:
true if multilingual mode is supported.

getAudioLayer

int getAudioLayer()
Returns the current MPEG Audio Layer, or -1 if the Audio Layer is not available.

Returns:
the current layer

getChannelLayout

int getChannelLayout()
Returns the current MPEG Audio channel layout, or -1 if the channel layout is not available.

Returns:
the current channel layout.

getLowFrequencyChannel

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

Returns:
true if Low Frequency Channel mode is turned on.

getMultilingualMode

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

Returns:
true if multilingual mode is turned on.

Java DTV API 1.3
18-Nov-2009

Copyright © 2008-2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.