M17-Project / m17-tools

A set of M17 tools
GNU General Public License v3.0
29 stars 3 forks source link

m17-mod-gui (playback) Stream overflow detected! #18

Open lwvmobile opened 12 months ago

lwvmobile commented 12 months ago

I've been getting a lot of the following in the console output when running m17-mod-gui in Linux Mint 20 and Linux Mint 21 when PTT is pressed, and really choppy audio output on the modulated 'sound' playing out the speaker. Occasionally, it clears up for a little bit, but most times, its just choppy and I get this message in the terminal.

RtApiAlsa::callbackEvent:  audio write error, underrun.
(playback) Stream overflow detected!

I did have better luck running this instead to get a modulated output that I could sync up with:

sox brain.wav -t raw - | ./m17-mod -S AB1CD -D AB2CD -r | play -q -b 16 -r 48000 -c1 -t s16 -

---Disregard the second portion that was here, I've found multiple issues with my current testing at the moment---

Paulo-D2000 commented 10 months ago

Hi! Thanks for the bug report! Could you please test the latest release and report if the issue persits ? Thanks.

lwvmobile commented 10 months ago

No, I'm afraid the behavior is still present after doing a git pull and rebuilding. Occasionally, it will run just fine, but more often than not, you get a wild stuttering and overflow. Here is a quick video demonstration. WARNING: Turn your volume down.

https://www.youtube.com/watch?v=lNOofb_UbE4

Paulo-D2000 commented 10 months ago

Strange... it seems like you're running on a VM maybe try it on the main pc ? It should build and work on windows 10/11 too (My dev env. is on win11 msvc 2019...)

lwvmobile commented 10 months ago

Actually, running in on real hardware didn't make a difference (again, with Mint) I think I've come to an understanding with it though on getting it to behave properly. If it has an audio feed to modulate before hitting the PTT button, it doesn't seem to have the overflow issue and stabilizes. Not sure why that is, but its good enough to get some testing done. So, I just play it some youtube playlists and hit the ptt button so I can test features in my own software.