How do you route e.g. youtube in windows browser to UPnP?
This does that:
http://www.streamwhatyouhear.com/
Thanks, another "soundcard" with network output, this one using DLNA format. I wonder why the mighty microsoft never built such functionality into windows directly (similarly to Apple Airplay/PA networking). But not much of a surprise, considering how many decades it took them to create such simple API as ASIO replacement.
So with what we've uncovered, I would combine:
1. One of the Windows apps that can stream to a DLNA/UPnP endpoint
2. A DLNA renderer on the Pi with its output directed to the input of an ALSA Loopback
3. An application that takes the ALSA Loopback output, does the DSP/LADSPA crossover stuff, and then outputs it to the DACs/AMPs/Speakers
(3) could be Ecasound, native ALSA, or Gstreamer/GSASysCon
You would need some way to tell (3) to get its input from the loopback instead of using the MPD output so that the user of the Windows computer can hear the sounds via the loudspeaker system connected to the Pi. I (personally) would use my GSASysCon application for (3), becasuse it can do routing/switching. Otherwise the MPD extension plus some UPnP software to do the controlling might also work.
One other option, instead of switching between MPD and the DNLA stream, you use ALSA's dmix and combine both inputs on the Pi. The Windows user would only need to pause/stop MPD play to hear the Windows sound playback by itself. You must use the same sample and bit depth (typically coded into ALSA at 32/48k but this can be changed globally) so that the streams can be mixed together properly.
1. One of the Windows apps that can stream to a DLNA/UPnP endpoint
2. A DLNA renderer on the Pi with its output directed to the input of an ALSA Loopback
3. An application that takes the ALSA Loopback output, does the DSP/LADSPA crossover stuff, and then outputs it to the DACs/AMPs/Speakers
(3) could be Ecasound, native ALSA, or Gstreamer/GSASysCon
You would need some way to tell (3) to get its input from the loopback instead of using the MPD output so that the user of the Windows computer can hear the sounds via the loudspeaker system connected to the Pi. I (personally) would use my GSASysCon application for (3), becasuse it can do routing/switching. Otherwise the MPD extension plus some UPnP software to do the controlling might also work.
One other option, instead of switching between MPD and the DNLA stream, you use ALSA's dmix and combine both inputs on the Pi. The Windows user would only need to pause/stop MPD play to hear the Windows sound playback by itself. You must use the same sample and bit depth (typically coded into ALSA at 32/48k but this can be changed globally) so that the streams can be mixed together properly.
- Status
- Not open for further replies.