javax.microedition.amms.control
Interface AudioFormatControl

All Superinterfaces:
FormatControl, Control

public interface AudioFormatControl
extends FormatControl

AudioFormatControl controls the setting of the audio format.

AudioFormatControl serves two purposes Set the audio codec in an audio-video format Set the format for audio only content type. For example, a Player to play and record audio from a microphone provides an AudioFormatControl instead of a ContainerFormatControl to specify the format, in case setting of the format is supported in the first place.

For example, setting the recording format to 128 kbps MP3 is done as follows: // initializing the Player and RecordControl omitted AudioFormatControl format = (AudioFormatControl)player.getControl("AudioFormatControl"); format.setFormat("audio/mpeg"); format.setParameter(FormatControl.PARAM_VERSION_TYPE, "MPEG1_layer_3"); format.setParameter(FormatControl.PARAM_BITRATE, 128000);

Audio formats

Format definitions are not part of this specification. Instead, a list of definitions can be downloaded from Forum Nokia. The list will be constantly updated and new types will be added as needed.

Since:
BlackBerry API 5.0.0

Field Summary
 
Fields inherited from interface javax.microedition.amms.control.FormatControl
METADATA_NOT_SUPPORTED, METADATA_SUPPORTED_FIXED_KEYS, METADATA_SUPPORTED_FREE_KEYS, PARAM_BITRATE, PARAM_BITRATE_TYPE, PARAM_FRAMERATE, PARAM_QUALITY, PARAM_SAMPLERATE, PARAM_VERSION_TYPE
 
Method Summary
 
Methods inherited from interface javax.microedition.amms.control.FormatControl
getEstimatedBitRate, getFormat, getIntParameterValue, getMetadataOverride, getMetadataSupportMode, getStrParameterValue, getSupportedFormats, getSupportedIntParameterRange, getSupportedIntParameters, getSupportedMetadataKeys, getSupportedStrParameterValues, getSupportedStrParameters, setFormat, setMetadata, setMetadataOverride, setParameter, setParameter
 






Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.