-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoiseTorch does not start #178
Comments
https://github.com/lawl/pulseaudio/blob/cb2596d6a8ef0c59cf1177fac851001f7220644e/format.go#L159 Someone guessed wrong, I guess. Probably the
tripping us up. |
Do you have the ability to build from source and patch this line to Will still need to figure out a proper fix later. |
I changed the line you mentioned and this indeed fixes the issue. |
diff --git a/format.go b/format.go
index f1e7503..51b52c8 100644
--- a/format.go
+++ b/format.go
@@ -156,13 +156,15 @@ func bread(r io.Reader, data ...interface{}) error {
sptr, ok := v.(*string)
if ok {
- buf := make([]byte, 1024) // max string length i guess.
+ buf := make([]byte, 0)
i := 0
for {
- _, err := r.Read(buf[i : i+1])
+ var curChar [1]byte
+ _, err := r.Read(curChar[:])
if err != nil {
return err
}
+ buf = append(buf, curChar[0])
if buf[i] == 0 {
*sptr = string(buf[:i])
break |
oops. sent too early accidentally. Could you try with this more proper patch again? |
When I start NoiseTorch from CLI it just throws an error and does not start. I can however start the noise supression with
noisetorch -i
and can in general interact with NoiseTorch through command line. I am running PipeWire on Arch. NoiseTorch works completely fine on my laptop (also PW on Arch).The output of attempting to start noisetorch:
I also ran
pw-cli dump
to get some more informationThe text was updated successfully, but these errors were encountered: