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!
-
41:56
CatfishedOnline
2 days agoKinky Man Sends 401k to Romance Scammer from Ghana!
32.6K9 -
1:53:55
Nick Shirley
20 hours ago $8.57 earnedIRL Confronting Anti-Trump & Anti-Elon Protesters
38.4K131 -
16:18
Tactical Advisor
1 day agoRetiring My Patrol Rifle | Old vs New
34K2 -
22:29
JasminLaine
21 hours agoAwkward Silence After Poilievre FACT CHECKS Reporter—Carney’s Face SAYS IT ALL
34.7K40 -
9:48
VSOGunChannel
21 hours ago $2.35 earned25% of ATF Getting Fired? SUPER ATF on Hold?
32.9K31 -
11:09
ariellescarcella
1 day ago"All 4 Of My Kids Are Trans" : NOOOOOO
30.7K37 -
12:35
GoldenWebb
1 day ago $0.38 earnedMP5/K Super Safety
19.1K6 -
2:45:42
Badlands Media
1 day agoDevolution Power Hour Ep. 343: System Shock
178K170 -
2:34:40
Sgt Wilky Plays
6 hours agoSunday Morning Coffee and games
18.6K1 -
1:24:00
Man in America
1 day agoMarket Crash, Tariffs, USD Collapse: Trump's Plan to END the Old World Order? w/ John Perez
151K176