setAudioSource method

Future<void> setAudioSource(
  1. int source
)

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.

Implementation

Future<void> setAudioSource(int source) =>
    _channel.$setAudioSource(this, source);