{ "root_post_id": "2072506103401754653", "posts": [ { "post_id": "2072506103401754653", "author": "NOTimothyLottes", "handle": "NOTimothyLottes", "text": "Settings I'm using for snd_pcm_sw_params for ALSA, don't have docs for all of this, seems to work. I'm doing 64 frame period size on a double buffer right now without any thread priority, and not getting xruns, so not yet sure of bad behavior", "timestamp": "2026-07-02 02:22:15", "media_urls": [ "https://pbs.twimg.com/media/HMMFAHiX0AAzY_R?format=png&name=orig" ], "reply_to_id": null, "quote_of_id": null, "metrics": { "reply_count": 1, "repost_count": 0, "like_count": 4, "view_count": 773 } }, { "post_id": "2072507664576164085", "author": "NOTimothyLottes", "handle": "NOTimothyLottes", "text": "I put in a forced thread sleep between writes to force a xrun, and SNDRV_PCM_IOCTL_WRITEI_FRAMES kernel call then returns -32, in which case I run a SNDRV_PCM_IOCTL_PREPARE and then just get back to the write loop, seems to restore normal playback just fine.", "timestamp": "2026-07-02 02:28:27", "media_urls": [], "reply_to_id": "2072506103401754653", "quote_of_id": null, "metrics": { "reply_count": 1, "repost_count": 0, "like_count": 2, "view_count": 221 } }, { "post_id": "2072511121269928165", "author": "NOTimothyLottes", "handle": "NOTimothyLottes", "text": "I reduced asound.h to this basically, the most minimal thing I found I needed. Now I also rename a few things (like structure names), and my IOCTL macros are slightly different in composition than standard.", "timestamp": "2026-07-02 02:42:11", "media_urls": [ "https://pbs.twimg.com/media/HMMJjYPWAAAY1IE?format=png&name=orig" ], "reply_to_id": "2072507664576164085", "quote_of_id": null, "metrics": { "reply_count": 1, "repost_count": 0, "like_count": 3, "view_count": 390 } }, { "post_id": "2072511875074421142", "author": "NOTimothyLottes", "handle": "NOTimothyLottes", "text": "After getting this far, it actually looks quite easy, but the route to this was filled with garbage sifting because I couldn't easily find someone else who did this kind of minimalization. I'm only supporting 48KHz stereo 16-bit signed, with double buffering = keep it simple.", "timestamp": "2026-07-02 02:45:11", "media_urls": [], "reply_to_id": "2072511121269928165", "quote_of_id": null, "metrics": { "reply_count": 0, "repost_count": 0, "like_count": 3, "view_count": 309 } } ], "source_url": "https://x.com/NOTimothyLottes/status/2072506103401754653" }