Playing PCM Samples

Oct 1, 2013 at 6:03pm
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.
Oct 4, 2013 at 5:50pm
Does DirectX and OpenAL count as external libraries? :P
Oct 6, 2013 at 3:35am
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 Oct 6, 2013 at 3:36am
Topic archived. No new replies allowed.