Sender | Message | Time |
---|---|---|
1 Apr 2024 | ||
In reply to @technicus:matrix.org* Those are symptoms of a wide variety of different issues. So that's happening when you play anything back? Do you hear that instead of, or in addition to, what you expect to hear? | 07:27:25 | |
Yes. | 07:27:46 | |
In reply to @technicus:matrix.org er... Yes you hear it instead of what you expect to hear, or yes you hear it in addition to what you expect to hear? Like, do you ONLY hear the scratching and popping when you try to play a sound file, but not the sound file itself? OR do you hear the sound file like you'd expect, but there is scratching and popping over the top of it? | 07:29:23 | |
And, may I take it that this only started after you made some changes to your configuration? You had clean audio before? | 07:30:08 | |
Well some good news with NixOS is, you can roll back to a previous working configuration just by selecting a different generation in the boot menu! | 07:30:33 | |
Damn . . . I was just looking up revision control for the config files . . . | 07:30:59 | |
It's a good idea to have em up on git, but that's one of the big perks of NixOS - it's super easy to roll back! | 07:31:47 | |
In reply to @fractivore:cyberia.clubI have a Sonic-pi loop running, and it clicks from time to time, same when I play any other media with audio. | 07:32:10 | |
I was just reading through this thread on different methods people organize the config. | 07:33:13 | |
https://discourse.nixos.org/t/github-strategies-for-configuration-nix/1983 | 07:33:16 | |
For now, I just want the simplest way of doing things. | 07:33:59 | |
In reply to @technicus:matrix.orgThis kind of problem is not usually easy to troubleshoot over matrix. There really are a lot of different things that could be causing it, but it's probably not your NixOS config. It's more likely to be an issue with the audio routing in JACK. | 07:34:23 | |
WAIT, actually though, it could be caused by using JACK without a Realtime kernel. | 07:34:44 | |
I do have security.rtkit.enable = true; . | 07:35:26 | |
But really the possibilities are just too numerous... You'll have to do some troubleshooting on your end. Check your audio routing for rogue input from microphones and that sort of thing. | 07:35:29 | |
With JACK it's really easy to get signal going to the wrong places. | 07:35:58 | |
Does jack and or pipewire require realtime? | 07:36:10 | |
With sonic-pi it's easy to code up something that has artifacts. | 07:36:18 | |
The clicks happen when youtube videos play as well. | 07:36:50 | |
In reply to @technicus:matrix.orgNo, but anytime I try to do audio stuff using my usual stack without the realtime kernel, the audio sounds like trash in some way shape or form. It seems like the system can't keep up. | 07:37:47 | |
What is the process for installing and selecting a realtime kernel? | 07:39:08 | |
In reply to @technicus:matrix.orgIDK, could you have set the sample rate to something extreme? Can you check your CPU load using e.g. htop and see if it's related? I get clicks sometimes when I'm getting a lot of xruns, but just youtube shouldn't cause that. | 07:39:40 | |
What's your hardware? | 07:39:50 | |
In reply to @technicus:matrix.orgI think this is all you need to do to enable the realtime kernel. | 07:40:05 | |
$ uname -a Linux samus 6.1.81 #1-NixOS SMP PREEMPT_DYNAMIC Wed Mar 6 14:45:20 UTC 2024 x86_64 GNU/Linux | 07:41:07 | |
In reply to @fractivore:cyberia.clubWait, maybe not, this just gives realtime scheduling priority to various processes.... | 07:42:33 | |
Use musnix probably: https://github.com/musnix/musnix | 07:43:00 | |
| 07:48:26 | |
Damn . . . audio still scratches. | 08:10:00 | |
that memory clock looks awfully low for a modern Zen | 12:34:26 |