Premium Only Content
No Game Engine Game Dev: Word Sleuth 101: Supporting multiple audio options (channels and encodings)
Streamed on 2024-12-17 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
It looks like we have to accept that some files sound fine with mu-law encoding and some do not. As a compromise between audio quality and size, we should support multiple encodings. So that's what we worked on.
I coded things up to have mu-law/mono audio sounding normal again. Then I added more configuration options to each sound file in the EmbedWAVs code. Each file now specifies its encoding and channels. I verified by looking at the output size and things look okay from that perspective. Then I added the functionality to EmbedWAVs to store and lookup the encoding and channels per sound.
With the asset pipeline side of things done, I move to the in-game code for playing Sounds. It looks up the encoding and channel count from the SoundWarehouse where that information was embedded by the sound asset pipeline. A few if statements and function or two later and it can now play back different options on a per sound basis. Now we can decide which files to use mu-law encoding for and which to use 16 bit PCM for. Yeah us!
-
6:14
Buddy Brown
7 hours ago $1.61 earnedLaw Enforcement Caught SNOOPING on PRIVATE LAND! | Buddy Brown
4.66K11 -
16:21
Real Estate
1 month ago $0.28 earnedIt’s Not Just You..NO ONE CAN AFFORD KIDS ANYMORE
3.99K6 -
LIVE
LFA TV
1 day agoLIVE & BREAKING NEWS! | MONDAY 11/3/25
1,027 watching -
1:11:07
vivafrei
3 hours agoFishing for Lawsuits! I Get Blocked Because Zohran is Anti-Gay? Halloween Terror Plot & MORE!
85.9K29 -
1:12:46
Russell Brand
5 hours agoWE’RE BACK! The Fight for Freedom Starts NOW - SF645
81.3K76 -
1:07:56
The Quartering
4 hours agoBen Shapiro Vs Tucker Carlson, Blackface Trick Works, Kash Patel Under Fire, Based Woman Vs Trans
69K30 -
1:35:28
The HotSeat With Todd Spears
3 hours agoEpisode 202: Ladies it's YOUR Battle too!
12.9K13 -
1:24:44
DeVory Darkins
5 hours agoTrump dominates 60 minutes interview as Democrats surrender to Mamdani
127K43 -
7:29
China Uncensored
7 hours agoThey’re Beautiful. They’re Dangerous. They Work for the CCP.
12.3K16 -
1:50:43
Tucker Carlson
5 hours agoChris Williamson’s Advice to Men: How to Survive a World of OnlyFans and AI Girlfriends
81.4K80