Stopping virtual voices


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.

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

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

1 Like

Thank you for your answer.

best regards