Use HDMI Audio

Use HDMI Audio

Postby fnatter » 01 Jan 2014, 15:31

hi,

BTW: thanks for developing STK, it is much fun for me :-)

I would like to switch my audio device for STK to ALSA/HDMI-audio.

Here are the devices on my (ALSA) system:

{l Code}: {l Select All Code}
$ aplay -L
default
    Playback/recording through the PulseAudio sound server
hdmi:CARD=MID,DEV=0
    HDA Intel MID, HDMI 0
    HDMI Audio Output
sysdefault:CARD=PCH
    HDA Intel PCH, ALC887-VD Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Digital
    IEC958 (S/PDIF) Digital Audio Output


$ aplay -D hdmi /usr/share/sounds/purple/send.wav
works fine (unless HDMI audio is used by, say, amarok).

I read this:
http://supertux.lethargik.org/wiki/OpenAL_Configuration

So I tried this in ~/.openalrc:
{l Code}: {l Select All Code}
(define devices '(alsa))
(define alsa-out-device "hdmi:0,0")
(define speaker-num 2)


But I don't get any sound via HDMI-audio. What can be observed is that "aplay
-D hdmi ...wav" breaks when amarok is running using HDMI-audio [1], but when
running "aplay ..." while supertuxkart is running it plays successfully.

I also tried to use pulseaudio:
- open supertuxkart
- start "pavucontrol"
- in the tab "Playback" I see the "SuperTuxKart" PlayBack Stream (with an active level)
- I cannot select "Internal Audio Digital Stereo (HDMI)", it immediately reverts back to
"Internal Audio Analog Stereo"!

[1] aplay ... results in "audio open error: Device or resource busy"

Thanks and Best Regards,
Felix
fnatter
 
Posts: 2
Joined: 01 Jan 2014, 15:21

Re: Use HDMI Audio

Postby Auria » 02 Jan 2014, 19:56

Hi,

I am afraid I do not know the solution to this. Just wanted to let you know we're not ignoring you, it's just that I don't know enough about linux audio to help you there. Maybe someone else can though...
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Use HDMI Audio

Postby fnatter » 02 Jan 2014, 21:02

hello Auria,

thanks for the reply. I found out that editing /etc/openal/alsoft.conf works (~/.openalrc seems to be ignored).

Cheers for STK!

Felix
fnatter
 
Posts: 2
Joined: 01 Jan 2014, 15:21

Who is online

Users browsing this forum: No registered users and 1 guest

cron