| .. | ||
| .envrc | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
Endpoint volume
This example shows that changing volume for default rendering device.
Prerequisites
- Go 1.13 or later
Build
go build
That's it. Then you'll get EndpointVolume.exe. Note that your platform is not Windows, you need set the environment variable GOOS='windows'.
Usage
./EndpointVolume --volume 0.1
Available flags are:
-v, --volumesets the volume as scalar value-g, --gainsets the volume as level (dB) value-m, --mutesets mute state
Contributing
- Fork (https://github.com/moutend/go-wca/fork)
- Create a feature branch
- Add changes
- Run
go fmt - Commit your changes
- Open a new Pull Request
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 1607 at the moment. Operation verification including bug report are welcome.