go-wca/_example/RenderExclusiveTimerDriven
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

Rendering audio with exclusive timer driven mode

This example shows that the rendering audio with exclusive timer driven mode.

Prerequisites

  • Go 1.13 or later

Build

go build

That's it. Then you'll get RenderExclusiveTimerDriven.exe. Note that your platform is not Windows, you need set the environment variable GOOS='windows'.

Usage

./RenderExclusiveTimerDriven -i music.wav

Please specify the WAVE audio file with -i or --input flag.

Note

Whether the wAV file can play or not is up to hardware settings. You need specify the WAV file which is encoded as same as output settings.

For example, when the output is configured to comibination of 96 kHz and 24 bit, you can only play WAV files which are encoded with 96 kHz and 24 bit.

Contributing

  1. Fork (https://github.com/moutend/go-wca/fork)
  2. Create a feature branch
  3. Add changes
  4. Run go fmt
  5. Commit your changes
  6. 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.