Login
You're viewing the code4lib.social public feed.
  • Oct 3, 2026, 11:00 PM

    Computers are weird.

    I wrote some experimental code with SDL_mixer and switching playback/recording devices at runtime. To hear if it's working, I loop the recording back into a mixer output track.

    If I launch the sample with my default mic, which is a headset, I get a noticeable delay, like over 1 second, before I hear myself talking.

    If I switch devices, even if I switch back to the same mic, that delay is gone. Poof!

    💬 0🔄 0⭐ 1