Ticket #195 (assigned bug)
USB audio device with TOSLINK connection does not work
| Reported by: | arion | Owned by: | tokyovigilante |
|---|---|---|---|
| Priority: | major | Milestone: | Version 0.5 |
| Component: | Core | Version: | unknown |
| Keywords: | imac optical usb audio toslink | Cc: |
Description
First, a little back story: I've got a semi-recent iMac 24" that I'm using with XBMC. My initial goal was to have an optical audio cable hooked up to my stereo system for use via XBMC and to still use the internal iMac speakers for stuff like iChat, etc. However, I found that when you plug in an optical audio cable to the back of the iMac, the internal speakers are disabled. The iMac treats the headphones/optical audio jack and internal speakers as one device. The only solution I came up with (because I'm too lazy to keep unplugging my optical audio cable) was to get a USB audio device with a TOSLINK connector. I found this device which seemed to be the one recommended from Mac audiophiles:
http://www.edirol.net/products/en/UA-1X/
It works with Leopard and has lots of audio input/outputs (including a miniplug TOSLINK connector). I've verified that it works properly with VLC in the setup I want (VLC audio to USB device, all other audio to speakers). So, back to the bug. This device shows up on my Mac as "DIROL UA-1EX 44.1kHz". Here is the section from my "guisettings.xml" file listing the device:
<audiooutput>
<ac3passthrough>true</ac3passthrough> <audiodevice>EDIROL UA-1EX 44.1kHz</audiodevice> <dtspassthrough>true</dtspassthrough> <mode>1</mode> <passthroughdevice>S/PDIF</passthroughdevice>
</audiooutput>
However, I don't hear any audio when its selected. I browsed through the code and it looks like a simple fix to "CPortAudio.cpp" could be applied -- the current code explicitly looks for "Digital" or "S/P-DIF" in the name of the device, and the device I'm using has neither in its name.
p.s. For those interested, the USB audio device is available at J&R Music World for ~$80.
