Documentation
¶
Index ¶
- Constants
- type Audio
- type Card
- type CardExport
- type CardList
- type CardPortExport
- type Meter
- type Module
- type Port
- type Profile
- type ProfileList
- type Sink
- func (*Sink) GetInterfaceName() string
- func (s *Sink) GetMeter() (dbus.ObjectPath, *dbus.Error)
- func (s *Sink) SetBalance(v float64, isPlay bool) *dbus.Error
- func (s *Sink) SetFade(v float64) *dbus.Error
- func (s *Sink) SetMute(v bool) *dbus.Error
- func (s *Sink) SetPort(name string) *dbus.Error
- func (s *Sink) SetVolume(v float64, isPlay bool) *dbus.Error
- type SinkInput
- type Source
- func (*Source) GetInterfaceName() string
- func (s *Source) GetMeter() (dbus.ObjectPath, *dbus.Error)
- func (s *Source) SetBalance(v float64, isPlay bool) *dbus.Error
- func (s *Source) SetFade(v float64) *dbus.Error
- func (s *Source) SetMute(v bool) *dbus.Error
- func (s *Source) SetPort(name string) *dbus.Error
- func (s *Source) SetVolume(v float64, isPlay bool) *dbus.Error
Constants ¶
View Source
const ( CardBuildin = 0 CardBluethooh = 1 CardUnknow = 2 PropDeviceFromFactor = "device.form_factor" PropDeviceBus = "device.bus" )
View Source
const ( PropAppIconName = "application.icon_name" PropAppName = "application.name" PropAppProcessID = "application.process.id" PropAppProcessBinary = "application.process.binary" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audio ¶
type Audio struct { PropsMu sync.RWMutex // dbusutil-gen: equal=objectPathSliceEqual SinkInputs []dbus.ObjectPath DefaultSink dbus.ObjectPath DefaultSource dbus.ObjectPath Cards string // dbusutil-gen: ignore // 最大音量 MaxUIVolume float64 // readonly // contains filtered or unexported fields }
type Card ¶
type Card struct { Id uint32 Name string ActiveProfile *Profile Profiles ProfileList Ports pulse.CardPortInfos // contains filtered or unexported fields }
type CardExport ¶
type CardExport struct { Id uint32 Name string Ports []CardPortExport }
type Meter ¶
type Module ¶
type Module struct { *loader.ModuleBase // contains filtered or unexported fields }
type Port ¶
type Profile ¶
type Sink ¶
type Sink struct { PropsMu sync.RWMutex Name string Description string // 默认音量值 BaseVolume float64 // 是否静音 Mute bool // 当前音量 Volume float64 // 左右声道平衡值 Balance float64 // 是否支持左右声道调整 SupportBalance bool // 前后声道平衡值 Fade float64 // 是否支持前后声道调整 SupportFade bool // dbusutil-gen: equal=portsEqual // 支持的输出端口 Ports []Port // 当前使用的输出端口 ActivePort Port // 声卡的索引 Card uint32 // contains filtered or unexported fields }
type SinkInput ¶
type Source ¶
type Source struct { PropsMu sync.RWMutex Name string Description string // 默认的输入音量 BaseVolume float64 Mute bool Volume float64 Balance float64 SupportBalance bool Fade float64 SupportFade bool // dbusutil-gen: equal=portsEqual Ports []Port ActivePort Port // 声卡的索引 Card uint32 // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.