Skip to content

noggs/WASAPITest

Repository files navigation

WASAPITest

Simple testbed for WASAPI api on Windows platform

There are probably tonnes of error cases not handled but I wanted some simple code to start understanding WASAPI and there wasn't any. Hopefully this can be of help to someone! Currently contains three projects.

Audio generation

Uses a sine wave to output a stereo tone. Frequency can be varied using UP and DOWN arrows and ESC to exit.

RAW playback

I grabbed the first WAV file I found on my harddrive and converted it to a variety of RAW formats using Audacity. If you switch the format of the Raw file it is loading you will need to manually change the code (search for HARDCODED_FORMAT).

OGG playback

Uses stb_vorbis to decode an OGG file into PCM data. The data is then played back in a similar manner to the RAW playback.

Thanks

Sean Barrett and contributers for stb_vorbis

bone666138 of Freesound.org for creating this alarm clock sample: 198841.

About

Simple testbed for WASAPI api on Windows platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published