Stopping virtual voices


(Keitel) #1

Hi,

I guess the following issue is explained somewhere in the documentation, but I don’t quite get it. The question is as follows: When you play one sound in a channel, you have full control of it. You can stop and start it or alter it’s volume. When you play many sounds in the same channel, you get what is called virtual voices. But what I don’t understand is how to stop them from sounding.

Thanks in advance.


(Brett Paterson) #2

Hi, there is a lot of info about virtual voices here.

http://www.fmod.org/documentation/#content/generated/overview/virtualvoices.html

If you want some sounds to be more important than others, use Sound::setDefaults or Channel::setPriority.

Without this the volume / audibility of the sound determines if you can hear it or not. The loudest ones will be audible, the others will be virtualized, but from the API, they both look the same (you can still set/get their attributes).


(Keitel) #3

Thank you for your answer.

best regards