目录搜索
androidManifestManifest.permissionManifest.permission_groupandroid.accessibilityserviceAccessibilityServiceandroid.accountsAccountandroid.appNotificationManagerandroid.bluetoothBluetoothAdapterBluetoothClassBluetoothClass.DeviceBluetoothClass.Device.MajorBluetoothClass.ServiceBluetoothDeviceBluetoothServerSocketBluetoothSocketandroid.contentSharedPreferencesandroid.database.sqliteSQLiteCursorDriverSQLiteOpenHelperandroid.graphicsBitmapandroid.locationLocationListenerGeocoderGpsStatusGpsStatus.ListenerGpsStatus.NmeaListenerGpsSatelliteandroid.mediaAudioFormatAsyncPlayerAudioRecordAudioRecord.OnRecordPositionUpdateListenerThumbnailUtilsAudioManagerandroid.netTrafficStatsMailToLocalSocketandroid.osAsyncTaskAsyncTask.StatusCountDownTimerMessageMessageQueueHandlerThreadandroid.textHtmlandroid.utilJsonWriterandroid.viewContextMenuContextMenu.ContextMenuInfoDisplayViewManagerViewViewStubViewTreeObserverViewParentWindowManagerGestureDetectorGravityMenuInflaterScaleGestureDetectorSoundEffectConstantsandroid.view.inputmethodInputConnectionInputMethodInputMethodSessionBaseInputConnectionInputMethodManagerandroid.widgetAbsListViewAbsListView.LayoutParamsAbsListView.OnScrollListenerAbsListView.RecyclerListenerAbsoluteLayoutAbsoluteLayout.LayoutParamsAbsSeekBarAbsSpinnerAdapterViewAdapterView.AdapterContextMenuInfoAdapterView.OnItemLongClickListenerAdapterView.OnItemSelectedListenerAdapterView.OnItemClickListenerAnalogClockBaseAdapterBaseExpandableListAdapterButtonCheckBoxCheckedTextViewCheckableChronometerChronometer.OnChronometerTickListenerCompoundButtonCompoundButton.OnCheckedChangeListenerCursorAdapterCursorTreeAdapterDatePickerDatePicker.OnDateChangedListenerDialerFilterDigitalClockEditTextFilterFilter.FilterListenerFilter.FilterResultsExpandableListAdapterExpandableListView.OnChildClickListenerExpandableListView.OnGroupClickListenerExpandableListView.OnGroupCollapseListenerExpandableListView.OnGroupExpandListenerFilterableGalleryGallery.LayoutParamsGridViewGridLayoutGridLayout.AlignmentRadioGroupImageViewImageView.ScaleTypeHorizontalScrollViewImageButtonImageSwitcherFilterQueryProviderListAdapterListViewMediaControllerMultiAutoCompleteTextViewMultiAutoCompleteTextView.CommaTokenizerMultiAutoCompleteTextView.TokenizerQuickContactBadgeRadioButtonRatingBarRatingBar.OnRatingBarChangeListenerRelativeLayoutRemoteViewsResourceCursorAdapterResourceCursorTreeAdapterScrollerScrollViewSearchViewSearchView.OnCloseListenerSearchView.OnQueryTextListenerSearchView.OnSuggestionListenerSeekBarSeekBar.OnSeekBarChangeListenerSimpleAdapterSimpleAdapter.ViewBinderSimpleCursorAdapterSimpleCursorAdapter.CursorToStringConverterSimpleCursorAdapter.ViewBinderSimpleCursorTreeAdapterSimpleCursorTreeAdapter.ViewBinderSimpleExpandableListAdapterSlidingDrawerSlidingDrawer.OnDrawerCloseListenerSlidingDrawer.OnDrawerOpenListenerSlidingDrawer.OnDrawerScrollListenerSpinnerSpinnerAdapterWrapperListAdapterTabHostTabHost.TabSpecTextViewTimePickerTimePicker.OnTimeChangedListenerToastTableLayoutTableLayout.LayoutParamsTableRowTableRow.LayoutParamsTabWidgetTextSwitcherToggleButtonTwoLineListItemVideoViewViewAnimatorViewFlipperViewSwitcherViewSwitcher.ViewFactoryZoomButtonsControllerZoomButtonsController.OnZoomListenerZoomButtonZoomControlsdalvik.systemDexFile
文字


AudioFormat

版本:Android 3.0 r1

结构

继承关系

public class AudioFormat extends Object

java.lang.Object

android.media.AudioFormat

类概述

AndioFormat类用于访问一些音频格式和通道配置常量。这些常量应用在AudioTrackAudioRecord类中。

常量

public static final int CHANNEL_CONFIGURATION_DEFAULT

已弃用。

CHANNEL_OUT_DEFAULT or CHANNEL_IN_DEFAULT 代替。

常量值:1 (0x00000001)

public static final int CHANNEL_CONFIGURATION_INVALID

已弃用。

CHANNEL_INVALID 代替。

常量值: 0 (0x00000000)

public static final int CHANNEL_CONFIGURATION_MONO

已弃用。

CHANNEL_OUT_MONO or CHANNEL_IN_MONO 代替。

常量值: 2 (0x00000002)

public static final int CHANNEL_CONFIGURATION_STEREO

已弃用。

CHANNEL_OUT_STEREO or CHANNEL_IN_STEREO 代替。

常量值: 3 (0x00000003)

public static final int CHANNEL_INVALID

无效的音频通道掩码

常量值: 0 (0x00000000)

public static final int CHANNEL_IN_BACK

常量值: 32 (0x00000020)

public static final int CHANNEL_IN_BACK_PROCESSED

常量值: 512 (0x00000200)

public static final int CHANNEL_IN_DEFAULT

常量值: 1 (0x00000001)

public static final int CHANNEL_IN_FRONT

常量值: 16 (0x00000010)

public static final int CHANNEL_IN_FRONT_PROCESSED

常量值: 256 (0x00000100)

public static final int CHANNEL_IN_LEFT

常量值: 4 (0x00000004)

public static final int CHANNEL_IN_LEFT_PROCESSED

常量值: 64 (0x00000040)

public static final int CHANNEL_IN_MONO

常量值: 16 (0x00000010)

public static final int CHANNEL_IN_PRESSURE

常量值: 1024 (0x00000400)

public static final int CHANNEL_IN_RIGHT

常量值: 8 (0x00000008)

public static final int CHANNEL_IN_RIGHT_PROCESSED

常量值: 128 (0x00000080)

public static final int CHANNEL_IN_STEREO

常量值: 12 (0x0000000c)

public static final int CHANNEL_IN_VOICE_DNLINK

常量值: 32768 (0x00008000)

public static final int CHANNEL_IN_VOICE_UPLINK

常量值: 16384 (0x00004000)

public static final int CHANNEL_IN_X_AXIS

常量值: 2048 (0x00000800)

public static final int CHANNEL_IN_Y_AXIS

常量值: 4096 (0x00001000)

public static final int CHANNEL_IN_Z_AXIS

常量值: 8192 (0x00002000)

public static final int CHANNEL_OUT_5POINT1

常量值: 252 (0x000000fc)

public static final int CHANNEL_OUT_7POINT1

常量值: 1020 (0x000003fc)

public static final int CHANNEL_OUT_BACK_CENTER

常量值: 1024 (0x00000400)

public static final int CHANNEL_OUT_BACK_LEFT

常量值: 64 (0x00000040)

public static final int CHANNEL_OUT_BACK_RIGHT

常量值: 128 (0x00000080)

public static final int CHANNEL_OUT_DEFAULT

默认的音频通道掩码。

常量值: 1 (0x00000001)

public static final int CHANNEL_OUT_FRONT_CENTER

常量值: 16 (0x00000010)

public static final int CHANNEL_OUT_FRONT_LEFT

常量值: 4 (0x00000004)

public static final int CHANNEL_OUT_FRONT_LEFT_OF_CENTER

常量值: 256 (0x00000100)

public static final int CHANNEL_OUT_FRONT_RIGHT

常量值: 8 (0x00000008)

public static final int CHANNEL_OUT_FRONT_RIGHT_OF_CENTER

常量值: 512 (0x00000200)

public static final int CHANNEL_OUT_LOW_FREQUENCY

常量值: 32 (0x00000020)

public static final int CHANNEL_OUT_MONO

常量值: 4 (0x00000004)

public static final int CHANNEL_OUT_QUAD

常量值: 204 (0x000000cc)

public static final int CHANNEL_OUT_STEREO

常量值: 12 (0x0000000c)

public static final int CHANNEL_OUT_SURROUND

常量值: 1052 (0x0000041c)

public static final int ENCODING_DEFAULT

默认的音频数据格式

常量值: 1 (0x00000001)

public static final int ENCODING_INVALID

无效的音频数据格式

常量值: 0 (0x00000000)

public static final int ENCODING_PCM_16BIT

音频数据格式:脉冲编码调制(PCM)每个样品16位。设备保证提供支持。(参见:这里)

常量值: 2 (0x00000002)

public static final int ENCODING_PCM_8BIT

音频数据格式:脉冲编码调制(PCM)每个样品8位。设备不保证提供支持。

常量值: 3 (0x00000003)

补充

文章精选

Android 实时获取麦克风输入音量的代码


上一篇:下一篇: