SamDel / ChromeCast-Desktop-Audio-Streamer

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

HDMI audio output, doesn't stream #11

Closed eminos closed 5 years ago

eminos commented 6 years ago

I just tried this on both my Laptop and my HTPC (Windows 10, connected with HDMI to TV). On the Laptop it works fine, I can stream audio playback to my Home Minis. But on the HTPC it never starts streaming the audio, just says "Idle".

I suspect that's because I'm using the HDMI for audio output from the Windows HTPC. Is there a fix for this?

eminos commented 6 years ago

Yea, I can confirm the HDMI audio output is the issue here. If I switch the default output in Sound -> Playback settings to "Digital Audio (S/PDIF)" it starts to stream the sound just fine. As soon as I switch back to "LG TV, Intel Display Audio" it stops.

SamDel commented 6 years ago

Thanks, good research.

I probably never tried but I have the same behaviour when plugging in a HDMI computer monitor. and after I found this message on audacity:

You must play the audio you want to record using the same sound device that has the "Stereo Mix" or similar input. You cannot play audio through an HDMI output or through a headset, headphones or speakers that connect via USB or wirelessly then record that playback using the stereo mix input of the built-in sound device.

I found out that I also have the bahaviour when plugging in a headphone. Have you tried a headphone?

eminos commented 6 years ago

I was about to try with headphones but now my Home Minis are not showing up anymore, only the Chromecast. I'm not sure why.

But is this, HDMI audio output, fixable? To have your software stream the HDMI audio? Maybe it could be configurable (choose output device)?

SamDel commented 6 years ago

You can add your devices in the config if they don't show up.

Can you try 0.9? I added a dropdown for the recording device, with the default device selected by default.

eminos commented 6 years ago

All devices showed up before, but now they don't. On the HTPC all devices still show up.

Anyway, just tried 0.9. And it works! Awesome :)

SamDel commented 6 years ago

Sometimes a reboot helps ;-). That's fast, glad it works!

eminos commented 6 years ago

Ok. I'll try a reboot. Maybe you could also add a "scan for chromecast / home devices" feature :)

SamDel commented 6 years ago

It's scanning for devices at startup now. It stops after a minute or so. Maybe I can add a button to start scanning again after you've changed something. Is that what you mean?

SamDel commented 5 years ago

I added a button to scan again for devices in version 1.3. I'm going to close this issue.