go-wca/_example/DeviceEvents
2023-03-04 20:21:34 +09:00
..
.envrc Update examples 2020-05-24 11:40:17 +09:00
.gitignore Update examples 2020-05-24 11:40:17 +09:00
go.mod Update all go.mod files under example directory 2023-03-04 20:21:34 +09:00
go.sum Update all go.mod files under example directory 2023-03-04 20:21:34 +09:00
LICENSE Update examples 2020-05-24 11:40:17 +09:00
main.go Update examples 2020-05-24 11:40:17 +09:00
README.md Update examples 2020-05-24 11:40:17 +09:00

Device Events

This example shows how to hook audio device events.

Prerequisites

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.