Chapter 7. Procedurally Modifying Audio
Now that our game art has received procedural treatment, let's turn our attention to its neighbor, sound. Great sound is imperative for a good game. Think about how iconic the sound of Super Mario's jump is, or the sound of chomping ghosts in Packman! A great soundtrack and accompanying game sounds help players immerse themselves in the worlds that we create as game developers. It's an area that needs to be done correctly, and there needs to be enough diversity here so that your players don't get sick of hearing the same sound effects over and over again.
We could manually create lots of variants of sound effects, but that's not the procedural way! Instead, we'll alter sounds randomly at runtime to create a slightly different sound each time it's played. Then, we'll utilize SFML's audio functions to create spatialized 3D sounds, thus adding more depth and immersion to the game.
Procedurally generating...