Audio basics

Hi, I wish to develop a (very) simple program in C++, just for educational purposes.
It should receive uncompressed audio samples and send them to some audio API (so, just open, setup, play and close).
What should I call ? MediaKit ? And how ?
Can anyone point me to some beginners guide?

AFAIK some developers says the gamekit is easier to use for the basics.

While I cannot help you directly, the Haiku source is always a good place to look for examples. The media_client should be of interest to you; all in very few lines of code.

Download the BeSampleCode package, and you’ll see various examples with articles explaining what’s going on. Lots of MediaKit and GameKit examples. For simple audio playback, use GameKit examples.

1 Like