!XrtRvzcHOrHtSKARne:nixos.org

NixOS Audio

113 Members
25 Servers

Load older messages


SenderMessageTime
1 Apr 2024
@technicus:matrix.orgMiles DysonWhat is the jack module: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/audio/jack.nix06:36:27
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @technicus:matrix.org
Is it possible to have pipewire and jack at the same time?
No, it's not. PipeWire runs it's own JACK server thing for compatibility, and the "real" JACK interferes.
07:17:53
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @technicus:matrix.org
What is the jack module:

https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/audio/jack.nix
I'm not quite sure what you're asking - there are a few different ways to describe what it is depending on context. It's a service module - when you add the relevant options to your configuration (such as, by adding services.jack.jackd.enable = true directly into the main part of your /etc/nixos/configuration.nix), NixOS will start the service on your system when you boot. From another point of view, it's a source code file in nixpkgs. NixOS knows to evaluate that file when you specify any of the services.jack.whatever options. Does that make sense, and does it help? Do you have more questions?
07:23:03
@technicus:matrix.orgMiles DysonI am close to understanding . . . 07:24:27
@technicus:matrix.orgMiles DysonI am not sure what I did, but the audio is clicking, scratching, and popping. 07:25:19
@technicus:matrix.orgMiles DysonI am going to try setting up git repository so you can see what I am doing.07:26:01
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @technicus:matrix.org
I am not sure what I did, but the audio is clicking, scratching, and popping.
Those are symptoms of a wide variety of different issues. So that's happening when you play anything back?
07:26:59
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @technicus:matrix.org
I am not sure what I did, but the audio is clicking, scratching, and popping.
* 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
@technicus:matrix.orgMiles DysonYes.07:27:46
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @technicus:matrix.org
Yes.

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
@fractivore:cyberia.club@fractivore:cyberia.clubAnd, may I take it that this only started after you made some changes to your configuration? You had clean audio before?07:30:08
@fractivore:cyberia.club@fractivore:cyberia.clubWell 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
@technicus:matrix.orgMiles DysonDamn . . . I was just looking up revision control for the config files . . .07:30:59
@fractivore:cyberia.club@fractivore:cyberia.clubIt'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
@technicus:matrix.orgMiles Dyson
In reply to @fractivore:cyberia.club

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?

I 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
@technicus:matrix.orgMiles DysonI was just reading through this thread on different methods people organize the config.07:33:13
@technicus:matrix.orgMiles Dysonhttps://discourse.nixos.org/t/github-strategies-for-configuration-nix/198307:33:16
@technicus:matrix.orgMiles DysonFor now, I just want the simplest way of doing things.07:33:59
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @technicus:matrix.org
I have a Sonic-pi loop running, and it clicks from time to time, same when I play any other media with audio.
This 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
@fractivore:cyberia.club@fractivore:cyberia.clubWAIT, actually though, it could be caused by using JACK without a Realtime kernel.07:34:44
@technicus:matrix.orgMiles Dyson I do have security.rtkit.enable = true;. 07:35:26
@fractivore:cyberia.club@fractivore:cyberia.clubBut 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
@fractivore:cyberia.club@fractivore:cyberia.clubWith JACK it's really easy to get signal going to the wrong places.07:35:58
@technicus:matrix.orgMiles DysonDoes jack and or pipewire require realtime?07:36:10
@fractivore:cyberia.club@fractivore:cyberia.clubWith sonic-pi it's easy to code up something that has artifacts.07:36:18
@technicus:matrix.orgMiles DysonThe clicks happen when youtube videos play as well.07:36:50
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @technicus:matrix.org
Does jack and or pipewire require realtime?
No, 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
@technicus:matrix.orgMiles DysonWhat is the process for installing and selecting a realtime kernel?07:39:08
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @technicus:matrix.org
The clicks happen when youtube videos play as well.
IDK, 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
@fractivore:cyberia.club@fractivore:cyberia.clubWhat's your hardware?07:39:50

Show newer messages


Back to Room ListRoom Version: 9