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.
[05:17 pm]
Oh_Man -- so i was today years old wen i learned rebel yell starcraft mission is named after a billy idol song. makes me wonder wat other missions are named after songs
[2026-6-04. : 3:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
Please log in to shout.


Members Online: zamia, jun3hong, UndeadStar