coreaudio

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CoreAudioAlreadyInitialized = errors.New("CoInitializeEX returned S_FALSE -> Already initialized on this thread")
)

Functions

This section is empty.

Types

type CoreAudio

type CoreAudio struct {
	// contains filtered or unexported fields
}

func New

func New() (*CoreAudio, error)

New will create a new CoreAudio interface and start all the event loops and bindings necessasry to inderact with Window's Audio APIs

func (*CoreAudio) Cleanup

func (ca *CoreAudio) Cleanup() error

Cleanup is called by other packages to close down the event loop, clear any pointers, and get ready for shutdown.

func (*CoreAudio) HandleMIDIMessage

func (ca *CoreAudio) HandleMIDIMessage(m *mixer.Mapping, c int, v int)

HandleMIDIMessage will take a *mixer.Mapping, and the MIDI's channel c, along with the value sent v, to peform the necessary logic of refreshing devices, setting volumes of audio sessions, devices, and other potential scenarios.

func (*CoreAudio) HandleSystrayMessage

func (ca *CoreAudio) HandleSystrayMessage(msg systray.Message)

HandleSystrayMessage takes messages from systray and will act accordingy.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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