As discussed earlier, the
SoundStream classes are derived from
SoundSource. First we will talk about some general features, and then give examples of how to use sound spatialization (in other words, 3D sounds).
As we create more and more complex scenes, we want more from our sounds and music. For example, some sounds might be louder than others, and we would like to lower their volume when we play them in the game. We can do that with
SoundSource::setVolume(). The supported volume values are from 0 (mute) to 100 (full volume), and every sound source starts with a default value of 100. We can get the current volume with
Another characteristic of sound is pitch. ...