MediaRecorder.AudioSource
public
final
class
MediaRecorder.AudioSource
extends Object
| java.lang.Object | |
| ↳ | android.media.MediaRecorder.AudioSource |
Defines the audio source.
An audio source defines both a default physical source of audio signal, and a recording
configuration. These constants are for instance used
in setAudioSource(int) or
setAudioSource(int).
Summary
Constants | |
|---|---|
int |
CAMCORDER
Microphone audio source with same orientation as camera if available, the main device microphone otherwise |
int |
DEFAULT
Default audio source |
int |
MIC
Microphone audio source |
int |
REMOTE_SUBMIX
Audio source for a submix of audio streams to be presented remotely. |
int |
UNPROCESSED
Microphone audio source tuned for unprocessed (raw) sound if available, behaves like
|
int |
VOICE_CALL
Voice call uplink + downlink audio source
Capturing from |
int |
VOICE_COMMUNICATION
Microphone audio source tuned for voice communications such as VoIP. |
int |
VOICE_DOWNLINK
Voice call downlink (Rx) audio source. |
int |
VOICE_RECOGNITION
Microphone audio source tuned for voice recognition if available, behaves like
|
int |
VOICE_UPLINK
Voice call uplink (Tx) audio source. |
Inherited methods | |
|---|---|
java.lang.Object
| |
Constants
CAMCORDER
int CAMCORDER
Microphone audio source with same orientation as camera if available, the main device microphone otherwise
Constant Value: 5 (0x00000005)
REMOTE_SUBMIX
int REMOTE_SUBMIX
Audio source for a submix of audio streams to be presented remotely.
An application can use this audio source to capture a mix of audio streams that should be transmitted to a remote receiver such as a Wifi display. While recording is active, these audio streams are redirected to the remote submix instead of being played on the device speaker or headset.
Certain streams are excluded from the remote submix, including
STREAM_RING, STREAM_ALARM,
and STREAM_NOTIFICATION. These streams will continue
to be presented locally as usual.
Capturing the remote submix audio requires the
CAPTURE_AUDIO_OUTPUT permission.
This permission is reserved for use by system components and is not available to
third-party applications.
Constant Value: 8 (0x00000008)
UNPROCESSED
int UNPROCESSED
Microphone audio source tuned for unprocessed (raw) sound if available, behaves like
DEFAULT otherwise.
Constant Value: 9 (0x00000009)
VOICE_CALL
int VOICE_CALL
Voice call uplink + downlink audio source
Capturing from VOICE_CALL source requires the
CAPTURE_AUDIO_OUTPUT permission.
This permission is reserved for use by system components and is not available to
third-party applications.
Constant Value: 4 (0x00000004)
VOICE_COMMUNICATION
int VOICE_COMMUNICATION
Microphone audio source tuned for voice communications such as VoIP. It
will for instance take advantage of echo cancellation or automatic gain control
if available. It otherwise behaves like DEFAULT if no voice processing
is applied.
Constant Value: 7 (0x00000007)
VOICE_DOWNLINK
int VOICE_DOWNLINK
Voice call downlink (Rx) audio source.
Capturing from VOICE_DOWNLINK source requires the
CAPTURE_AUDIO_OUTPUT permission.
This permission is reserved for use by system components and is not available to
third-party applications.
Constant Value: 3 (0x00000003)
VOICE_RECOGNITION
int VOICE_RECOGNITION
Microphone audio source tuned for voice recognition if available, behaves like
DEFAULT otherwise.
Constant Value: 6 (0x00000006)
VOICE_UPLINK
int VOICE_UPLINK
Voice call uplink (Tx) audio source.
Capturing from VOICE_UPLINK source requires the
CAPTURE_AUDIO_OUTPUT permission.
This permission is reserved for use by system components and is not available to
third-party applications.
Constant Value: 2 (0x00000002)
Interfaces
- AudioManager.OnAudioFocusChangeListener
- AudioRecord.OnRecordPositionUpdateListener
- AudioRecord.OnRoutingChangedListener
- AudioRouting
- AudioRouting.OnRoutingChangedListener
- AudioTrack.OnPlaybackPositionUpdateListener
- AudioTrack.OnRoutingChangedListener
- ImageReader.OnImageAvailableListener
- ImageWriter.OnImageReleasedListener
- JetPlayer.OnJetEventListener
- MediaCodec.OnFrameRenderedListener
- MediaDrm.OnEventListener
- MediaDrm.OnExpirationUpdateListener
- MediaDrm.OnKeyStatusChangeListener
- MediaPlayer.OnBufferingUpdateListener
- MediaPlayer.OnCompletionListener
- MediaPlayer.OnErrorListener
- MediaPlayer.OnInfoListener
- MediaPlayer.OnPreparedListener
- MediaPlayer.OnSeekCompleteListener
- MediaPlayer.OnTimedMetaDataAvailableListener
- MediaPlayer.OnTimedTextListener
- MediaPlayer.OnVideoSizeChangedListener
- MediaRecorder.OnErrorListener
- MediaRecorder.OnInfoListener
- MediaScannerConnection.MediaScannerConnectionClient
- MediaScannerConnection.OnScanCompletedListener
- MediaSync.OnErrorListener
- RemoteControlClient.OnGetPlaybackPositionListener
- RemoteControlClient.OnMetadataUpdateListener
- RemoteControlClient.OnPlaybackPositionUpdateListener
- RemoteController.OnClientUpdateListener
- SoundPool.OnLoadCompleteListener
Classes
- AsyncPlayer
- AudioAttributes
- AudioAttributes.Builder
- AudioDeviceCallback
- AudioDeviceInfo
- AudioFormat
- AudioFormat.Builder
- AudioManager
- AudioManager.AudioRecordingCallback
- AudioRecord
- AudioRecord.Builder
- AudioRecordingConfiguration
- AudioTimestamp
- AudioTrack
- AudioTrack.Builder
- CamcorderProfile
- CameraProfile
- DrmInitData
- DrmInitData.SchemeInitData
- ExifInterface
- FaceDetector
- FaceDetector.Face
- Image
- Image.Plane
- ImageReader
- ImageWriter
- JetPlayer
- MediaActionSound
- MediaCodec
- MediaCodec.BufferInfo
- MediaCodec.Callback
- MediaCodec.CryptoInfo
- MediaCodec.CryptoInfo.Pattern
- MediaCodecInfo
- MediaCodecInfo.AudioCapabilities
- MediaCodecInfo.CodecCapabilities
- MediaCodecInfo.CodecProfileLevel
- MediaCodecInfo.EncoderCapabilities
- MediaCodecInfo.VideoCapabilities
- MediaCodecList
- MediaCrypto
- MediaDataSource
- MediaDescription
- MediaDescription.Builder
- MediaDrm
- MediaDrm.CryptoSession
- MediaDrm.KeyRequest
- MediaDrm.KeyStatus
- MediaDrm.ProvisionRequest
- MediaExtractor
- MediaFormat
- MediaMetadata
- MediaMetadata.Builder
- MediaMetadataEditor
- MediaMetadataRetriever
- MediaMuxer
- MediaMuxer.OutputFormat
- MediaPlayer
- MediaPlayer.TrackInfo
- MediaRecorder
- MediaRecorder.AudioEncoder
- MediaRecorder.AudioSource
- MediaRecorder.OutputFormat
- MediaRecorder.VideoEncoder
- MediaRecorder.VideoSource
- MediaRouter
- MediaRouter.Callback
- MediaRouter.RouteCategory
- MediaRouter.RouteGroup
- MediaRouter.RouteInfo
- MediaRouter.SimpleCallback
- MediaRouter.UserRouteInfo
- MediaRouter.VolumeCallback
- MediaScannerConnection
- MediaSync
- MediaSync.Callback
- MediaSyncEvent
- MediaTimestamp
- PlaybackParams
- Rating
- RemoteControlClient
- RemoteControlClient.MetadataEditor
- RemoteController
- RemoteController.MetadataEditor
- Ringtone
- RingtoneManager
- SoundPool
- SoundPool.Builder
- SyncParams
- ThumbnailUtils
- TimedMetaData
- TimedText
- ToneGenerator
- VolumeProvider
Exceptions


