updateConfig method
Updates the audio capture configuration.
This method allows you to change the configuration after the instance has been created. The new configuration will be applied on the next startCapture call.
Example:
final capture = SystemAudioCapture();
// Update config before starting
capture.updateConfig(SystemAudioConfig(
sampleRate: 48000,
channels: 2,
));
await capture.startCapture();
Implementation
void updateConfig(SystemAudioConfig config) {
_config = config;
}