internal

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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

func NewProcess(name string) (*Process, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL