Change from one audio output to another one, in ONE only command in MENU
#1
Question 
Hello,

-> Can we have a more easy mode to change from one audio output to another one ?
(ex : HDMI <-> Analog)

Why ?
Because during Home Theater use, XBMC device has only it's IR remote, so:
.. if we can modify audio setup from one to another one with IR remote, modifying asound.conf is impossible on the XBMC device, without an distant networked PC or local KB/Mouse

nb : Tell me if a thread already exists, about an patch or add-on to change from one audio output to another one, in ONE only command in MENU
(I don't talk about having all the audio outputs activated at the same time)

Thanks for all Smile

Nb: To adapt to each hardware, the user could prepare 2 or more different asound.conf files, one by desired audio output; then, the add-on could easily switch from one audio output config to another then modify itself audio setup in user audio setup menu

For example, with my ZBOX AD10 :

/configfiles/asound_ANALOG.conf

pcm.!default {
type plug
slave {
pcm "hw:1,0" #delete the first hash for sound over analog
# pcm "hw:1,1" #delete the first hash for sound over optical
# pcm "hw:0,3" #delete the first hash for sound over hdmi
rate 48000
}
}

/configfiles/asound_HDMI.conf

pcm.!default {
type plug
slave {
# pcm "hw:1,0" #delete the first hash for sound over analog
# pcm "hw:1,1" #delete the first hash for sound over optical
pcm "hw:0,3" #delete the first hash for sound over hdmi
rate 48000
}
}

ANALOG audio user setup:

Audio output = Analog
Audio output device: custom
Custom audio device: plughw:1,0

HDMI audio user setup :

Audio output = HDMI
Audio output device: HD-Audio Generic hdmi (ALSA)
Passtrough audio device: HD-Audio Generic hdmi (ALSA)

Jean-Max

OpenELEC on 2 ZBOX
KODI on 4 Windows PC
Reply
#2
Hello,

Test OK on my Zbox Nano AD10 (Openelec eden fusion 64 28 oct):

I can have audio output on HDMI OR ANALOG with :

-(1)- Modify /configfiles/asound.conf file like this:

pcm.!default {
type plug
slave {
pcm "hw:1,0" #delete the first hash for sound over analog
# pcm "hw:1,1" #delete the first hash for sound over optical
pcm "hw:0,3" #delete the first hash for sound over hdmi
rate 48000
}
}

-(2)- Reboot

-(3)- Then, it's easy with remote, and without reboot, to modify Audio user setup:

If I want ANALOG audio:

Audio output = Analog
Audio output device: Custom
Custom audio device: plughw:1,0

If I want HDMI audio:

Audio output = HDMI
Audio output device: HD-Audio Generic hdmi (ALSA)
Passtrough audio device: HD-Audio Generic hdmi (ALSA)
Jean-Max

OpenELEC on 2 ZBOX
KODI on 4 Windows PC
Reply
#3
Hello,

Yesterday night, I have seen that:
no need to modify asound.conf exactly like I said before:

I can let asound.conf in HDMI only mode
('#' stay on Analog and optical lines)
User menu/Sound output is on HDMI
-> HDMI output audio is OK

now:
I go to User menu/Sound output
I set to ANALOG
-> the Analog audio output is OK Smile
no need to reboot
no need to modify asound.conf to Analog !

Good surprise : Now, with only the remote, in HT room, I can change audio output HDMI<--> ANALOG Smile

One only remote key to do that would be better but ...
Jean-Max

OpenELEC on 2 ZBOX
KODI on 4 Windows PC
Reply

Logout Mark Read Team Forum Stats Members Help
Change from one audio output to another one, in ONE only command in MENU0