Search code examples
cwindowsaudiosignal-processingpcm

Play generated PCM data in real time


I'm developing a digital audio synthesizer on a dsPIC.

To begin with Im writing and testing the algorithms in matlab.

For the second phase Im translating the algorithms into ANSI C (MinGW Compiler) to test on a Windows PC before porting to the dsPIC.

The audio data will be uncompressed PCM samples. What options are there for playing the generated PCM data in C ? (preferably in real time)


Solution

  • On Windows, you can use the waveOut API.

    Here is a tutorial.