You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Noisetorch is unable to parse the package version provided.
To Reproduce
Steps to reproduce the behavior:
run noisetorch with pulseaudio 16
$ noisetorch -i -log
2022/06/19 11:01:11 Application starting. Version: 0.12.2 (archlinux)
2022/06/19 11:01:11 CAP_SYS_RESOURCE: true
2022/06/19 11:01:11 Checking if config needs to be initialized
2022/06/19 11:01:11 Couldn't resolve $XDG_CONFIG_HOME falling back to '/home/foo/.config'
2022/06/19 11:01:11 Wrote temp librnnoise to: /tmp/librnnoise-2953609971.so
2022/06/19 11:01:11 Couldn't resolve $XDG_CONFIG_HOME falling back to '/home/foo/.config'
2022/06/19 11:01:11 Audioserver package name: pulseaudio
2022/06/19 11:01:11 Audioserver package version: 16.0
2022/06/19 11:01:11 Detected PulseAudio
2022/06/19 11:01:11 couldn't parse server version, regexp didn't match version: 16.0
2022/06/19 11:01:11 Querying pulse rlimit
2022/06/19 11:01:11 Rlimit: {Cur:200000 Max:200000}. Trying to remove.
2022/06/19 11:01:11 Rlimit: {Cur:18446744073709551615 Max:18446744073709551615}
2022/06/19 11:01:11 Loading supressor for pulse
2022/06/19 11:01:11 Loaded null sink as idx: 35
2022/06/19 11:01:11 Loaded ladspa sink as idx: 36
2022/06/19 11:01:11 Loaded loopback as idx: 37
2022/06/19 11:01:11 Loaded remap source as idx: 38
2022/06/19 11:01:11 Deleted temp librnnoise: /tmp/librnnoise-2953609971.so
Expected behavior
Presumably it should be parsed. It looks like maybe it's hardcoded to expect a version number like 1.2.3 which causes issues with versions like 16.0.
I haven't looked much at the code but if the purpose of this is to check that the pipewire version isn't too old, maybe it should be rewritten to not print anything if pipewire isn't being used.
It looks like the error is generated on this line:
Describe the bug
Noisetorch is unable to parse the package version provided.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Presumably it should be parsed. It looks like maybe it's hardcoded to expect a version number like 1.2.3 which causes issues with versions like 16.0.
I haven't looked much at the code but if the purpose of this is to check that the pipewire version isn't too old, maybe it should be rewritten to not print anything if pipewire isn't being used.
It looks like the error is generated on this line:
NoiseTorch/main.go
Line 247 in 489505e
Desktop (please complete the following information):
pulseaudio 16.0-1
noisetorch 0.12.2-1
Additional context
Extra credit:
noisetorch --version
should return current version.The text was updated successfully, but these errors were encountered: