dheijl / swyh-rs

Stream What You Hear written in rust, inspired by SWYH.
MIT License
348 stars 15 forks source link

Distorted and interrupted sound with 24/94 #134

Closed DrCWO closed 2 months ago

DrCWO commented 4 months ago

Hello, I try to use swyh-rs as it seems to be exactly the missing link for me. Thanks for your effort.

Playing around with it I encounter an issue I'm to able to solve by myself so support would be appreciated :-)

In my setup I use Roon as Audio Source that streams to the input virtual Hi-Fi Cable with 24/96. I connect swyh-rs to the output of Hi-Fi Cable and anyting looks good I think as RMS-Monitor shows a signal.

image

Next I started Firefox on a different PC and connected to http://192.168.0.247:5901/stream/swyh.flac I see a progress bar and hear music but is distorted and interrupted. In one word not usable.

Next I started Foobar and tried to stream to it with the same result. image

I need an idea of what goes wrong here and how to resolve it please.

Edit: After this experience I tried with 48kHz and this seems to work. But this is no solution for me as I need to run it with 96kHz sample rate :-(

Best DrCWO

dheijl commented 4 months ago

It works fine here with HiFi Cabel at 96 kHz:

afbeelding

afbeelding

afbeelding

No distortion, no drop-outs, no stuttering.

DrCWO commented 4 months ago

Hmmm, crazy I run in issues with this. I have an Intel i7 so should be fast enough :-(

dheijl commented 4 months ago

So Roon is running on the same pc as swyh-rs?

DrCWO commented 4 months ago

Yes. This is my Roon Server and I grab the Roon ASIO output with VoiceMeeter Banana, send it from there to VST Host Light (ASIO), process it there, stream back to VoiceMeeter banana (ASIO). From there to Virtual Hi-Fi Cable and into swyh-rs. All on one machine but load is below 30% at 96kHz...

Maybe the RDP access to the i7 creates the trouble here...

dheijl commented 4 months ago

I don't think that cpu load is the issue, but latency is unpredictable with so many processes fighting for cpu. Also, unlike vb cable, hifi cable does not resample, so the sampling rates should match everywhere.

dheijl commented 2 months ago

As there has not been any activity, I'll close this for now. You can always reopen if needed.