O'Reilly logo

SFML Game Development By Example by Raimondas Pupius

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required