Staredit Network > Forums > General StarCraft > Topic: Sound channels in BW
Sound channels in BW
Dec 20 2014, 9:54 pm
By: theleo_ua  

Dec 20 2014, 9:54 pm theleo_ua Post #1



Doom2 has 8 audio channels (8 sounds max can play at the same time), SC2 has 16 min and 128 max (you can change this in options, like in screenshot below):



But how many channels are in BW?

Post has been edited 1 time(s), last time on Dec 23 2014, 11:57 pm by theleo_ua.



None.

Dec 21 2014, 4:23 am jjf28 Post #2

Cartography Artisan

I assume it's built like this: a sound causing event occurs, BroodWar calls a sound method like "PlayTrigWav" or "PlayUnitSpeech" causing a call to a generic sound playing method (PlayBwSound, for example), PlayBwSound calls some method based on the operating system, (like PlaySound), with the SND_ASYNC flag).

With that kind of setup StarCraft wouldn't be dealing with sound channels (at least not directly); this matches the common knowledge that WAVs in maps cannot be stopped partway through and will just overlap, and fits with how a time strained team would want to write sound handling... though if BroodWar did indeed have say, 16 channels, playing 16 WAVs might hold the key to stopping WAVs mid-stream :)

I'm not basing this off any code/inside knowledge, someone else may have a better understanding.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Dec 21 2014, 9:40 am Sand Wraith Post #3

she/her

Mesk or an affiliate of his reported 8 sound channels or thereabouts. It was low to the point of being noteworthy in any case. It's worth checking with the DirectX version BW uses, or asking Hercannic, he'd probably know.

edit: bw probably does a fair bit of sound handling of its own given its use of positional audio. idk, can't check atm.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
Please log in to shout.


Members Online: jun3hong, Roy