• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] 2 Sound questions

Status
Not open for further replies.
Level 6
Joined
Jun 4, 2017
Messages
172
-There are multiple audio channels in wc3, if I play multiple sounds(like 6-7) from different channels at the same time will some sound be omitted?

-Is it possible to give to a sound more priority than another one? Like if there are some low priority sounds playing and I need to play a more important sound but I can't(because wc3 is limited with the amount of sounds playing in the same time), can I detect the low priority sounds?.
 
Going by logic, I would say that it is possible, though I can't really have much of a say on that.

If priority is concerned, one will have to make a linked list that stores the instances sequentially. The behavior of the linked list is such that it is sorted from least to greatest, depending on volume.

Detecting low priority sounds would mean peeking at the first or last element of the list, depending on the implementation.
 
Status
Not open for further replies.
Top