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.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[01:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
Please log in to shout.


Members Online: Roy