722 B
722 B
Device Events
This example shows how to hook audio device events.
Prerequisites
- Go 1.13 or later
go-ole(https://github.com/go-ole/go-ole)
Build
go build
That's it. Then you'll get DeviceEvents.exe. Note that your platform is not Windows, you need set the environment variable GOOS='windows'.
Usage
./DeviceEvents
Contributing
Bug reports and improving the documentation are welcome. (https://github.com/moutend/go-wca/issues)
The Windows Core Audio API was introduced Windows vista, so that the later than that version of Windows could run this example. However, I'm not sure because I've just tested this example on Windows 10 version 1909 at the moment.