Chapter 12. Can You Hear Me Now? – Sound and Music

There's nothing quite like the enjoyment of being immersed in a virtual environment. From the movies we watch to the games we play, appeal to and usage of as many human senses as possible can either make or break the captivation that a form of media can hold. Creating a living and breathing atmosphere can rarely, if ever, be only down to visual effects. Throughout this chapter, we will briefly close our eyes and engage in the auditory side of this project by covering subjects such as:

  • Basics of sound and music in SFML
  • Placement of sounds and the listener in 3D space
  • Proper management and recycling of sound instances
  • Expansion of the entity component system to allow for sounds

We have a long way to ...

Get SFML Game Development By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.