AudioDeviceInfo constructor

AudioDeviceInfo({
  1. required String id,
  2. required StreamType streamType,
  3. required DeviceType deviceType,
  4. required String displayName,
  5. required String deviceName,
  6. required bool isActive,
  7. required int level,
  8. String? stableDeviceId,
})

Implementation

AudioDeviceInfo({
  /// The unique identifier of the audio device.
  required String id,

  /// Stream type associated with this device.
  required StreamType streamType,

  /// Type of the device.
  required DeviceType deviceType,

  /// The user-friendly name (e.g. "USB Microphone").
  required String displayName,

  /// Device name.
  required String deviceName,

  /// True if this is the current active device.
  required bool isActive,

  /// The sound level of the device, volume for output, gain for input.
  required int level,

  /// The stable/persisted device id string when available.
  String? stableDeviceId,
}) : _wrapped = $js.AudioDeviceInfo(
        id: id,
        streamType: streamType.toJS,
        deviceType: deviceType.toJS,
        displayName: displayName,
        deviceName: deviceName,
        isActive: isActive,
        level: level,
        stableDeviceId: stableDeviceId,
      );