Strange bug where audio randomly pitches upward after long playback



first of all, to make things nice and easy for a linux form, I’m using standardized hardware: running Kodi through flatpak on a Steam Deck. I’m having a weird bug where if I put a lot of videos into a playlist and let it play for a while, eventually the audio will pitch upward, not just for the video but for all of Kodi. What I mean it it sounds like the people are speaking as though they were sped up, but are still speaking at a normal speed, only the pitch is higher. When I exit the video, all the menu sounds in Kodi are also pitched up, the same way. This persists until I exit kodi and restart it.

The amount of time before this happens is random, it’s not being triggered by any specific video file being played back. I’ve tried looking at logs and I dont’ see anything weird. I’m not new to running kodi in Linux, I’ve been using linux as my daily driver going back to 2000, and I have other desktops and laptops in various distros — including a desktop with HoloISO (the desktop port of SteamOS) — that are running kodi and don’t exhibit this problem, even operating on the same playlist of videos.

This has been going on since the beginning of the year when I switched from opening up the filesystem on my Steam Deck to install kodi manually, to using flatpak so kodi stays installed persistently throughout steamOS updates. It never bothered me much because I mainly used other devices to access these videos, but I’m at a point where the Steam Deck is going to be my primary video watching device for a few weeks and I’d like to squash this bug if at all possible. Anybody else run into this and have any advice on where I can start looking to diagnose this further?