Page 1 of 1
digital audio (spdif) passthrough?
Posted: 18. Feb 2012, 01:59
by victorclaessen
Hi,
I was wondering if it was possible to have a Windows guest on a Linux host use the physical mainboard's SPDIF output? I would like to feed DTS audio to an external decoder from a Windows guest.
Best regards,
V.
Re: digital audio (spdif) passthrough?
Posted: 18. Feb 2012, 11:50
by mpack
The guest can't use host hardware directly, the guest only uses virtual hardware.
The guest uses the host to output audio. If you can enable the SPDIF output on the host, then the guests output will also appear there.
Re: digital audio (spdif) passthrough?
Posted: 20. Feb 2012, 18:40
by victorclaessen
Thanks for the reply.
I understand that the guest OS is dealing with a virtual device. It's just that I did not notice a digital playback option on the virtual Intel HD Audio device in the guest machine.
In a
host machine I see this, for instance, if I go to the Playback Devices screen.:

- Windows 7 - Sound devices panel on a physical machine
- screen1.png (48.25 KiB) Viewed 2153 times

- Digital output properties panel
- screen2.png (43.59 KiB) Viewed 2153 times

- Supported Formats Tab
- screen3.png (42.47 KiB) Viewed 2153 times
Where I can select that my Amplifier knows what to do with Digital Audio (DTS format in this case).
In the
guest machine I see only 'Speakers' in the Playback Devices list. It doesn't seem plausible that the guest Windows will send digital audio to a virtual soundcard that it thinks is analog-only, right?
I realise I may end up having to test this myself; I was just hoping someone had tried this before.
I suppose it would be possible to attach a USB-soundcard with SPDIF-output and assign that to the VM, but I'd rather use the host's onboard output.
Re: digital audio (spdif) passthrough?
Posted: 20. Feb 2012, 19:20
by michaln
I'm not sure how you imagine a VM would process analog signals. All the audio data a VM inputs and outputs have to be digital at the point of entering/leaving the VM.
Re: digital audio (spdif) passthrough?
Posted: 21. Feb 2012, 14:42
by victorclaessen
Valid point. A test is in order. I will aim to report back later this week when the host machine arrives and the guest is set up.