Handmade Hero»Forums»Game
Gaurav Gautam
98 posts
A diagram about audio synchronization.

Hello,

I have been trying to get the long audio synchronization stream of day20 down for a while now. I think I have it now. I drew this diagram to show what my understanding is. I think I have it right (just the low latency case). I am putting this diagram here in case someone will like to look at it and tell me if I'm still wrong about something

day21audiojugglery.png

Simon Anciaux
1337 posts
A diagram about audio synchronization.
Edited by Simon Anciaux on

It looks OK, but I didn't spend a lot of time thinking about it.

I'd suggest that you search the forums about topics on direct sound, day 19, day 20 and WASAPI. The reason is that, starting with Windows Vista, direct sound is emulated on top of the Core Audio APIs and so trying to get low latency with it is kind of pointless if only to practice programming.

https://hero.handmade.network/forums/code-discussion/t/102-day_19_-_audio_latency

https://hero.handmade.network/forums/code-discussion/t/2369-%5Bday_019%5D_-_possible_solution_to_the_3-frame_latency

https://hero.handmade.network/forums/code-discussion/t/6933-day_19__direct_sound_audio_sync

https://hero.handmade.network/forums/code-discussion/t/6942-day__20__the_tragedy_of_cases

Gaurav Gautam
98 posts
A diagram about audio synchronization.
Replying to mrmixer (#27124)

Thankyou simon. I'll check them out... just a bit stressed with work right now. But I'll come back and look at them later.