MediaRecorder.SetAudioSource(AudioSource) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the audio source to be used for recording.
[Android.Runtime.Register("setAudioSource", "(I)V", "GetSetAudioSource_IHandler")]
public virtual void SetAudioSource (Android.Media.AudioSource audioSource);
[<Android.Runtime.Register("setAudioSource", "(I)V", "GetSetAudioSource_IHandler")>]
abstract member SetAudioSource : Android.Media.AudioSource -> unit
override this.SetAudioSource : Android.Media.AudioSource -> unit
Parameters
- audioSource
- AudioSource
the audio source to use
- Attributes
Exceptions
if it is called after setOutputFormat()
Remarks
Sets the audio source to be used for recording. If this method is not called, the output file will not contain an audio track. The source needs to be specified before setting recording-parameters or encoders. Call this only before setOutputFormat().
Java documentation for android.media.MediaRecorder.setAudioSource(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.