JSR-234 1.1

javax.microedition.amms.control
Interface AudioFormatControl

All Superinterfaces:
javax.microedition.media.Control, FormatControl

public interface AudioFormatControl
extends FormatControl

AudioFormatControl controls the setting of the audio format.

AudioFormatControl serves two purposes

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.


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, getSupportedStrParameters, getSupportedStrParameterValues, setFormat, setMetadata, setMetadataOverride, setParameter, setParameter
 


JSR-234 1.1

Copyright © 2004-2007 Nokia Corporation. See the Copyright for details.