-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
easyeffects: add option to import presets
added options to import presets added tests added hausken as maintainer
- Loading branch information
Showing
7 changed files
with
137 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
easyeffects-service = ./service.nix; | ||
easyeffects-example-preset = ./example-preset.nix; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"input": { | ||
"blocklist": [], | ||
"plugins_order": [ | ||
"rnnoise#0" | ||
], | ||
"rnnoise#0": { | ||
"bypass": false, | ||
"enable-vad": false, | ||
"input-gain": 0.0, | ||
"model-path": "", | ||
"output-gain": 0.0, | ||
"release": 20.0, | ||
"vad-thres": 50.0, | ||
"wet": 0.0 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ ... }: | ||
|
||
{ | ||
services.easyeffects = { | ||
enable = true; | ||
extraPresets = { | ||
example-preset = { | ||
input = { | ||
blocklist = [ | ||
|
||
]; | ||
"plugins_order" = [ "rnnoise#0" ]; | ||
"rnnoise#0" = { | ||
bypass = false; | ||
"enable-vad" = false; | ||
"input-gain" = 0.0; | ||
"model-path" = ""; | ||
"output-gain" = 0.0; | ||
release = 20.0; | ||
"vad-thres" = 50.0; | ||
wet = 0.0; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
test.stubs.easyeffects = { }; | ||
|
||
nmt.script = '' | ||
assertFileContent \ | ||
home-files/.config/easyeffects/input/example-preset.json "${ | ||
./example-preset.json | ||
}" | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ ... }: | ||
|
||
{ | ||
services.easyeffects = { enable = true; }; | ||
|
||
test.stubs.easyeffects = { }; | ||
|
||
nmt.script = '' | ||
serviceFile=home-files/.config/systemd/user/easyeffects.service | ||
assertFileExists $serviceFile | ||
assertFileRegex $serviceFile 'ExecStart=.*/bin/easyeffects' | ||
''; | ||
} |