Playing PCM Samples

Hi, I'm trying to get started on some audio programming. I've written a program that synthesizes a PCM sample of a square wave. Now I'm wondering how I can get windows to actually play the sample through my speakers or headphones. I'd prefer to avoid external libraries if at all possible.
Does DirectX and OpenAL count as external libraries? :P
OpenAL is deprecated AFAIK.

If you want to write .wav PCM data to disk, it's simply a matter of studying the RIFF wave header.
Read this thread:
http://www.cplusplus.com/forum/general/109119/

If you want to stream PCM audio in real time, you can use FMOD or BASS. I prefer BASS, because FMOD had some mysterious latency issues.
Last edited on
Topic archived. No new replies allowed.