DeviceType type

DeviceType represents the type of media device (e.g., audio input/output).

Type Definition:

string

MediaDevice struct

MediaDevice represents a system media device, typically parsed from wpctl.

Fields:

  • ID (string) - json:"id"
  • Name (string) - json:"name"
  • Description (string) - json:"description"
  • Type (DeviceType) - json:"type"
  • IsDefault (bool) - json:"is_default"

VolumeInfo struct

VolumeInfo represents volume information, typically for the default sink/source.

Fields:

  • LevelPercent (int) - json:"level_percent"
  • IsMuted (bool) - json:"is_muted"