Documentation ¶
Index ¶
- func CloseEndpoint(ae AudioEndpoint) (bool, error)
- func GetAllEndpoints() (*[]*AudioEndpoint, error)
- func GetAudioEndpointEnum() (*wca.IMMDeviceEnumerator, error)
- func GetAudioEndpointVolume(IMMDevice *wca.IMMDevice) (*wca.IAudioEndpointVolume, error)
- func GetAudioProperties(IMMDevice *wca.IMMDevice) (*wca.IPropertyStore, error)
- func GetDeviceCollection(stateMask uint32) (*wca.IMMDeviceCollection, error)
- func GetDeviceCollectionLength(deviceCollection *wca.IMMDeviceCollection) (*uint32, error)
- func NewAudioDeviceEndpoint() *wca.IMMDevice
- func NewPropertyValue() *wca.PROPVARIANT
- type AudioEndpoint
- func (adp *AudioEndpoint) GetAudioDeviceName() (string, error)
- func (ae AudioEndpoint) GetMuteState() (bool, error)
- func (adp *AudioEndpoint) GetPropertyValue(key *wca.PROPERTYKEY) (string, error)
- func (ae AudioEndpoint) GetVolume() (int, error)
- func (ae AudioEndpoint) SetMuteState(state bool) (bool, error)
- func (ae AudioEndpoint) SetVolume(volume int) (bool, error)
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 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)
Click to show internal directories.
Click to hide internal directories.