setPlaybackThroughDevice method
setPlaybackThroughDevice Assigns the output device to the recording line signal
Implementation
Future<bool> setPlaybackThroughDevice(Device recordingDevice, Device playbackDevice) async {
final command = 'SoundVolumeView /SetPlaybackThroughDevice "${recordingDevice.name}" ${playbackDevice.itemID}';
try {
await shell.run(command);
return true;
} catch( error ) {
return false;
}
}