masterAudio

package
v0.0.0-...-6d52c94 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseEndpoint

func CloseEndpoint(ae AudioEndpoint) (bool, error)

func GetAllEndpoints

func GetAllEndpoints() (*[]*AudioEndpoint, error)

func GetAudioEndpointEnum

func GetAudioEndpointEnum() (*wca.IMMDeviceEnumerator, error)

func GetAudioEndpointVolume

func GetAudioEndpointVolume(IMMDevice *wca.IMMDevice) (*wca.IAudioEndpointVolume, error)

func GetAudioProperties

func GetAudioProperties(IMMDevice *wca.IMMDevice) (*wca.IPropertyStore, error)

func GetDeviceCollection

func GetDeviceCollection(stateMask uint32) (*wca.IMMDeviceCollection, error)

func GetDeviceCollectionLength

func GetDeviceCollectionLength(deviceCollection *wca.IMMDeviceCollection) (*uint32, error)

func NewAudioDeviceEndpoint

func NewAudioDeviceEndpoint() *wca.IMMDevice

func NewPropertyValue

func NewPropertyValue() *wca.PROPVARIANT

Types

type AudioEndpoint

type AudioEndpoint struct {
	Name          string
	IsDefault     bool
	PropertyStore *wca.IPropertyStore
	Volume        *wca.IAudioEndpointVolume
	Device        *wca.IMMDevice
	Enum          *wca.IMMDeviceEnumerator
}

func GetAudioDeviceFromDeviceCollection

func GetAudioDeviceFromDeviceCollection(deviceCollection *wca.IMMDeviceCollection, deviceIdx uint32) (*AudioEndpoint, error)

func GetAudioEndpointVolAndProps

func GetAudioEndpointVolAndProps(Device *wca.IMMDevice) (*AudioEndpoint, error)

func GetDefaultAudioDevice

func GetDefaultAudioDevice() (*AudioEndpoint, error)

func (*AudioEndpoint) GetAudioDeviceName

func (adp *AudioEndpoint) GetAudioDeviceName() (string, error)

func (AudioEndpoint) GetMuteState

func (ae AudioEndpoint) GetMuteState() (bool, error)

func (*AudioEndpoint) GetPropertyValue

func (adp *AudioEndpoint) GetPropertyValue(key *wca.PROPERTYKEY) (string, error)

func (AudioEndpoint) GetVolume

func (ae AudioEndpoint) GetVolume() (int, error)

func (AudioEndpoint) SetMuteState

func (ae AudioEndpoint) SetMuteState(state bool) (bool, error)

func (AudioEndpoint) SetVolume

func (ae AudioEndpoint) SetVolume(volume int) (bool, error)

Jump to

Keyboard shortcuts

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