setAudioChannels method

Future<void> setAudioChannels(
  1. int numChannels
)

Sets the number of audio channels for recording.

Call this method before prepare. prepare may perform additional checks on the parameter to make sure whether the specified number of audio channels are applicable.

Usually it is either 1 (mono) or 2 (stereo).

Implementation

Future<void> setAudioChannels(int numChannels) {
  return _channel.$setAudioChannels(this, numChannels);
}