SamDel / ChromeCast-Desktop-Audio-Streamer

Stream the sound of your desktop to your Chromecast Audio device
MIT License
415 stars 30 forks source link

[Request] 192Khz lossless streaming #66

Closed wolf-hg closed 4 years ago

wolf-hg commented 4 years ago

Could this be possible given good enough processing power and network? The ability to select a specified sound card for it to stream gives a lot of possibilities for signal processing with virtual cables and such. One thing I would like to try is to run an FM transmitter with signal processing and stereo MPX signal generation. It requires at least 176.4Khz sampling rate for it to work. The Chromecast Audio internal DAC seems to support it, would it accept a higher rate?

SamDel commented 4 years ago

I thinks it's possible. This test version ignores the selected stream format and uses 176400.

Can you try?

wolf-hg commented 4 years ago

With stream format set to wav it still seems to be 44.1Khz. It drops off at 22Khz just above the pilot tone.

wolf-hg commented 4 years ago

I'm guessing it won't work since it is such a niche setup. Is there a way to see the active format the device is using?

wolf-hg commented 4 years ago

Did some more testing, reset the device and reinstall etc. Using a sweep generator I was able to get it to produce 96Khz (48x2) before it started re-sampling the signal. So while it might not do more then that, it works with 96 which should be more than enough for any regular Hi-res streaming.

SamDel commented 4 years ago

You're right, the test version isn't 176400. I think I have to resample the stream in the application then, but I don't think there's an easy way to do it.