Commit Graph

39 Commits (master)

Author SHA1 Message Date
lawl cb2ee053b6 Handle non-semver versions in audio client gracefully-ish 3 years ago
lawl fad3e1d4f4 Add support for PipeWire
Warning: Alpha quality. Please manage your expectations.
3 years ago
Sefa Eyeoglu 9b651eb701
Implement distribution-specific builds
Make more things configurable at compile time so building binaries for distributions is easier while complying with the license.
3 years ago
lawl 8b11b649ee Don't log to a file anymore. Log to stdout if called with -log
Additionally refactor the CLI a bit more to make that possible
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 3119fc5997 Use go:embed instead of scripts/embedbinary.go 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 54f9e012e3 Make sure we remove rlimit for unloading too 3 years ago
lawl 730dc35d94 Require capabilities on startup 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 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 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 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 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 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 a65e5d28a7 Don't swallow the error when connection to pulse fails 4 years ago
lawl b1a0034754 Log Input devices 4 years ago
lawl 26a4977831 remove rttime-rlimit as root during loading 4 years ago
lawl 93ae03e987 Fix a regression in writing log 4 years ago
lawl b11e2e69dc Add updater 4 years ago
lawl 3083a4084f Auto generate full license text and embed
Display the licenses of all dependencies in a context menu suboption
4 years ago
lawl f0a73d3ff7 Log to file and stdout, instead of just file 4 years ago
lawl a3ab544446 Embed git tag as version number 4 years ago
lawl 3b544587b4 rename to NoiseTorch 4 years ago
lawl 50b63fbac7 Don't block UI thread on module loading/unloading 4 years ago
lawl e758ce0ac7 big bang 4 years ago