Handmade Hero»Forums»Code
Shazan Shums
159 posts
Some day I will make quality software. Programming FTW.
Day 359 - Sound not working
Edited by Shazan Shums on
I compiled Day 359 source code but sound is not working how to fix it. Is this a bug or something wrong with my PC.
And any guide lines like using debug system because I downloaded source code yesterday.
Mārtiņš Možeiko
2562 posts / 2 projects
Day 359 - Sound not working
Edited by Mārtiņš Možeiko on
Put breakpoint at start of Win32InitDSound function and start stepping to see if all if conditions succeed.
If everything there succeeds, then put breakpoint around BEGIN_BLOCK("Audio Update"); code and start stepping sound update code. And check if GetCurrentPosition call succeeds. And later inside Win32FillSoundBuffer function call to Lock also succeeds.