Skip to content

Commit 7095966

Browse files
committed
EQ
1 parent 1d591ce commit 7095966

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

desktop/configuration/services.nix

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,56 @@
330330
"default.clock.rate" = 44100;
331331
};
332332
};
333+
"eq" = {
334+
"context.modules" = [
335+
{
336+
name = "libpipewire-module-filter-chain";
337+
args = {
338+
"node.description" = "EQ";
339+
"media.name" = "EQ";
340+
"filter.graph" = {
341+
nodes = [
342+
{
343+
type = "builtin";
344+
name = "preamp";
345+
label = "bq_highshelf";
346+
control = { "Freq" = 0; "Gain" = -4.2; "Q" = 1.0; };
347+
}
348+
{
349+
type = "builtin";
350+
name = "filter9";
351+
label = "bq_lowshelf";
352+
control = { "Freq" = 145; "Gain" = 4.2; "Q" = 0.8; };
353+
}
354+
{
355+
type = "builtin";
356+
name = "filter10";
357+
label = "bq_lowshelf";
358+
control = { "Freq" = 45; "Gain" = -2.2; "Q" = 0.9; };
359+
}
360+
];
361+
links = [
362+
{ output = "preamp:Out"; input = "filter9:In"; }
363+
{ output = "filter9:Out"; input = "filter10:In"; }
364+
];
365+
};
366+
"capture.props" = {
367+
"node.name" = "effect_input.eq_shelves";
368+
"media.class" = "Audio/Sink";
369+
"audio.channels" = 2;
370+
"audio.position" = [ "FL" "FR" ];
371+
};
372+
"playback.props" = {
373+
"node.name" = "effect_output.eq_shelves";
374+
"node.passive" = true;
375+
"target.object" = "alsa_output.usb-GuangZhou_FiiO_Electronics_Co._Ltd_FIIO_BTR15_EQ-00.analog-stereo";
376+
"audio.channels" = 2;
377+
"audio.position" = [ "FL" "FR" ];
378+
};
379+
};
380+
}
381+
];
382+
};
333383
};
334384
};
335385
};

0 commit comments

Comments
 (0)