INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Automatic detection of HDMI connection?  (Read 1503 times)

Trumpetguy

  • Citizen of the Universe
  • *****
  • Posts: 974
Automatic detection of HDMI connection?
« on: December 21, 2013, 01:04:41 pm »

My living room laptop has two primary uses: 1) standalone, using the built-in speakers and 2) running theater view connected to the TV with hdmi, bitstreaming audio through hdmi.

I always forget to switch audio playback device between laptop speakers and bitstreaming through hdmi, which invariably causes some annoyed response from kids and wife...
Is there any way to use automatic zone switch or otherwise switch audio path when the hdmi cable is connected and disconnected?

Logged

Trumpetguy

  • Citizen of the Universe
  • *****
  • Posts: 974
Re:
« Reply #1 on: March 03, 2014, 11:27:12 am »

*bump*
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Automatic detection of HDMI connection?
« Reply #2 on: March 03, 2014, 01:13:00 pm »

I don't think so.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

AndrewFG

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3392
Re: Automatic detection of HDMI connection?
« Reply #3 on: March 03, 2014, 04:15:05 pm »

^

I am not completely sure of this, but I am guessing the following..

In Windows, when you connect or disconnect a USB device, the Windows plug & play (PnP) sub- system detects the change, and broadcasts a system message "hardware changed" to all applications. And I guess that when you connect or disconnect an HDMI device, it works the same way. So MC could monitor these PnP broadcasts to detect when audio / video devices are connected or disconnected, and change its active output port accordingly. This is exactly analogous to the way that MC already monitors the UPnP broadcasts to detect when UPnP / DLNA renderers are connected or disconnected..

Logged
Author of Whitebear Digital Media Renderer Analyser - http://www.whitebear.ch/dmra.htm
Author of Whitebear - http://www.whitebear.ch/mediaserver.htm

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10933
Re: Automatic detection of HDMI connection?
« Reply #4 on: March 03, 2014, 04:17:55 pm »

This already works if you use DirectSound with the Default Audio Device, it follows the active preferred audio device of Windows, which gets updated when you connect a new one.
However, DirectSound is the only one that supports it right now.

We may introduce the default device option for WASAPI as well in the future, but unlikely for any other outputs, since the output itself needs to send these change events.
Logged
~ nevcairiel
~ Author of LAV Filters

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: Automatic detection of HDMI connection?
« Reply #5 on: March 03, 2014, 07:50:04 pm »

This already works if you use DirectSound with the Default Audio Device, it follows the active preferred audio device of Windows, which gets updated when you connect a new one.
However, DirectSound is the only one that supports it right now.

We may introduce the default device option for WASAPI as well in the future, but unlikely for any other outputs, since the output itself needs to send these change events.

Actually, depending on the device, I've seen rare automatic switching with WASAPI as well.  I have a little USB dac that I use with my laptop, and JRiver is set to output to it using WASPAI. If I unplug the DAC, JRiver seems to automagically change the output device to the laptop's speakers; when I plug the DAC back in (as long as nothing is currently playing) it seems to change the device back to WASAPI pointing at the DAC.  

That device, however, is definitely the exception. I have a few other USB DACs, and none of them exhibit that same behavior.  It may be related to the fact that the one that does the auto-switch is USB Audio Class 2 compliant (and driverless), and the others require drivers?  Not sure if that moves the ball forward on the HDMI question, but I thought I'd mention that JRiver seems to be picking up on some of those PnP events.
Logged
Pages: [1]   Go Up