Posted on

Playing sound with SDL/C++

In my ongoing adventure to get up to speed on C++, I succeeded in getting a tutorial to work and play audio on my machine using only code (via SDL).

Unfortunately the tutorial kind of sucks at explaining the process of actually getting up and running.  If you just throw the code in, it won’t work.  Having rarely worked with C++ before, I had to learn the concept of includes and linking.

If you have no idea what I’m talking about, go through the tutorial I linked and use this blog as a reference to help you.  I’ll give you all the code so you can copypasta as you wish.  Keep in mind, this post is focused on Windows users only.

Continue reading Playing sound with SDL/C++


Copyright 2016-2021, NIR LLC, all rights reserved.