SystemAudioCapture constructor

SystemAudioCapture({
  1. SystemAudioConfig? config,
})

Creates a new SystemAudioCapture instance.

config is optional. If not provided, default configuration will be used (sampleRate: 16000, channels: 1).

Example:

final capture = SystemAudioCapture(
  config: SystemAudioConfig(
    sampleRate: 44100,
    channels: 2,
  ),
);

Implementation

SystemAudioCapture({SystemAudioConfig? config}) {
  _config = config ?? SystemAudioConfig();
}