Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process represents all pids of a process
func NewProcess ¶
NewProcess finds a process from its name
type VolumeControl ¶
type VolumeControl struct {
// contains filtered or unexported fields
}
VolumeControl is used to control the volume of an individual process
func NewVolumeControl ¶
func NewVolumeControl(process *Process) (*VolumeControl, error)
NewVolumeControl constructs a new control instance from a process
func (*VolumeControl) GetVolume ¶
func (c *VolumeControl) GetVolume() (int, error)
GetVolume gets the volume level of the process Volume is in the range of 0 to 100
func (*VolumeControl) Release ¶
func (c *VolumeControl) Release()
Release frees the allocated resources
func (*VolumeControl) SetVolume ¶
func (c *VolumeControl) SetVolume(level int) error
SetVolume sets the volume level of the process Volume is in the range of 0 to 100
Click to show internal directories.
Click to hide internal directories.