Commit Graph

108 Commits (0ef8229e6fb54c50ec16dd64e24fb32e49b3b207)
 

Author SHA1 Message Date
lawl 0ef8229e6f License: Use convey instead of distribute for wording 3 years ago
lawl fb46112181 Add link of a demo to readme
Closes #19
3 years ago
Lorenz 4853c5c8d7
Fix not printing errror message
The CLI should print errors to stderr, and not write to the log file.
3 years ago
lawl 95e82fcbfd CLI: Factor CLI out of main
Our CLI shared some data structures, like the pulseaudio connection with the GUI.
This could lead to issues where the UI would break when code on the CLI was changed
because the the GUI must handle things differently, by nature of working differently.

Add more separation between those, so changes on the CLI are less likely to break the GUI.
3 years ago
lawl 6ea788a0c0 Refactor: Remove old method of removing rlimit for pulseaudio
Previously we had the capability to remove the rlimit on pulseaudio
by calling ourselves via pkexec to elevate privileges.
A while ago we switched to fully using capabilities.
We now remove the old legacy codepath.
3 years ago
lawl 245455d508 Refactor UI: Rename "screen" to "view" 3 years ago
lawl 6f901716ed Refactor UI: Use a stack of views to handle what to display
Previously we dispatched calls to different drawing function with
a bunch of if statements in the main draw function.

Use a stack of drawing functions instead.
3 years ago
lawl fe14585a37 make troubleshooting section more visible 3 years ago
lawl 8b054c20a9 Update License 3 years ago
lawl ee91fea993 Use -O2 for LADSPA module 3 years ago
lawl 3119fc5997 Use go:embed instead of scripts/embedbinary.go 3 years ago
lawl 5a55f0538a Update 'Special thanks to' 3 years ago
lawl 77a8c73436 Update build instructions 3 years ago
lawl fcb4db042c Add information about potentially having to relog for PATH changes 3 years ago
lawl 7172888478 Convert fmt print to log print 3 years ago
lawl 335b8a2567 Fix unloading via CLI (-u)
Squashed commit of the following:

commit 19532d64a7f7337da7f844d52198417ceaf60e80
Author: lawl <github@dumbinter.net>
Date:   Thu Feb 4 10:40:27 2021 +0100

    Fix unloading paClient for UI

commit 66ece81e17589988f92059b44b2659fdca0c4ca1
Merge: 1c97cfe 60d06f2
Author: lawl <github@dumbinter.net>
Date:   Thu Feb 4 10:36:13 2021 +0100

    Merge branch 'fix_cli_unload' of git://github.com/hador/NoiseTorch into hador-fix_cli_unload

commit 60d06f25aa
Author: andreafa <andreafa@amazon.com>
Date:   Thu Feb 4 08:51:48 2021 +0000

    Fix cli unload (-u).

    The findModule method in module.go requires a valid paClient to be
    populated in the context object.
    Added logging if unloadSupressor fails when called via the -u CLI flag.
3 years ago
Andrea Fagiani 1c97cfe43c
Use 24-hour clock when adding timestamps to log file names. (#92)
Co-authored-by: andreafa <andreafa@amazon.com>
3 years ago
lawl 47d8188b3a Add warning if FS capabilities don't match process capabilities 3 years ago
lawl febccb207b Tune values for fixed latency devices 3 years ago
lawl 54f9e012e3 Make sure we remove rlimit for unloading too 3 years ago
lawl 730dc35d94 Require capabilities on startup 3 years ago
lawl 4513db1baf use different params for fixed latency devices to hopefully correct latency faster 3 years ago
lawl e7072b2bf9 Add -Wall, -Werr 3 years ago
lawl b747084bb0 Replace noise-suppression-for-voice with own implementation
In preparation for PipeWire support we required our own implementation anyways.
To have a shared code base and potentially enable some other tighter integration
between the LADSPA module and NoiseTorch, we move to our own implementation.
3 years ago
lawl 4f7ac325ab
Update README.md 3 years ago
lawl f3c11be919 remove more commented code (yuck) 3 years ago
lawl 313aca54a2 remove commented out code 3 years ago
lawl da9370e983 fix noop updater 3 years ago
lawl 37692a873a Implement output filtering 3 years ago
lawl d8be27d86e Make patreon call to action look nicer 3 years ago
Nicu Reut 595b8ab9b4
Remember last used device and preselect pulseaudio default 3 years ago
lawl 39c1e37dfa Fix regression in CLI 4 years ago
lawl 8ddee5f4bd Add build flag to enable the update
A regular make will produce a build without the updater.
An explicit -tags release is now required to bake the updater in.
4 years ago
lawl 76d5c2e5ff Add patreon button 4 years ago
lawl cd2b2c843d Implement using CAP_SYS_RESOURCE
Instead of pkexecing everytime we check if we have CAP_SYS_RESOURCE and then just do it directly.
If we don't have it, we try to set it with pkexec.
4 years ago
lawl 6238c208e5 Refactor: uistate -> context 4 years ago
spitts be9849b748
Add space after "Device Name" to match "Device ID" 4 years ago
lawl 7dfd54e878 Fix issue when changing default device 4 years ago
lawl 02665f12db Don't hardcode /tmp 4 years ago
lawl 93b508a935 Append timestamp to log file name 4 years ago
Chance Nelson 0b852e42bc
Implement CLI
* moce pa source retrieval to another function

* add commandline flags for unloading/loading supressor without UI

* add threshold flag

* add newlines to new log outputs

* add flag for listing available sources

* add newline for unloading message

* ensure log/console output is redirected to the correct place

* add stderr print for failed initializations

* Cleanup CLI interface

Co-authored-by: lawl <github@dumbinter.net>
4 years ago
lawl 3b37c63a4e
Replace TS screenshot to avoid confusion 4 years ago
lawl 371b3e33b5 Fix bugs with pa reconnection 4 years ago
lawl 4243d5036d Don't fail to display UI when pa connection fails
Additionaly we now re-establish the connection if
it fails while we are already running.
4 years ago
lawl c07c021e49 warn about third party packages 4 years ago
lawl 5ce761a62b Explain that NT can be closed after loading 4 years ago
lawl 5bd3ea90c4 Update pulseaudio package 4 years ago
lawl 9bcb2a0c8d Respect PULSE_RUNTME_PATH and PULSE_COOKIE 4 years ago
lawl 3fc46d2d30 Flag fixed latency inputs as likely incompatible in UI
There is currently a bug in PulseAudio that prevents
devices with fixed latency from working. See #30
4 years ago
lawl 37b35ce1ee Merge branch 'repect-xdg' 4 years ago