go-wca/_example/DeviceEvents/README.md
Yoshiyuki Koyanagi 366b96953a Update examples
2020-05-24 11:40:17 +09:00

28 lines
722 B
Markdown

# 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
```console
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
```console
./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.