RenderSharedTimerDriven

command
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2017 License: MIT, MIT Imports: 13 Imported by: 0

README

Rendering with shared timer driven mode

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

Prerequisites

Build

go build

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

Usage

./RenderSharedTimerDriven -i music.wav

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

Note

This example doesn't convert the sample rate of the input. The rendering step will be failed when the sample rate and bit depth of input audio doesn't match system default sample rate and bit depth.

To avoid this error, please set the system default settings for shared mode playback according to the audio file you want to play.

  1. Open control panel and select sound.
  2. Select the main playback device and open property.
  3. Select the advanced tab and check the default sample rate and bit depth.
  4. Apply changes.

For example, if you want to play the wave audio file which is extracted from DVD, in other words, which is recorded with 48000 Hz / 16 bit, you need choose 4800 Hz / 16 bit for shared mode audio playback.

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 1607 at the moment.

Documentation

Rendered for windows/amd64
The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL