Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Metro 2033, Metro: Last Light, & Redux variants: no sound
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Mar 22, 2015 4:39 pm    Post subject: Metro 2033, Metro: Last Light, & Redux variants: no soun Reply with quote

well, unfortunately the tips from (https://forums.gentoo.org/viewtopic-t-916116-postdays-0-postorder-asc-start-0.html) didn't work - for both Metro: Last Light, Metro: Last Light Redux and the other Metro games

I had to use pasuspender - you could also run steam & Metro without it - but there might be some clashing, so - just in case - temporarily disable pulseaudio


steam doesn't launch or work when opened with pasuspender, so I opened up another program (temporarily) with pasuspender (keep it open while having and or game running)


Code:
pasuspender audacious


(or any other program)

Quote:
aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
sysdefault:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, ID 40 Digital
HDMI Audio Output



e.g. front:CARD=PCH,DEV=0 is the card that you use (headphones)


then run steam via

Code:
SDL_AUDIODRIVER=alsa AUDIODEV="front:CARD=PCH,DEV=0" steam

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Sun Mar 22, 2015 6:45 pm    Post subject: Reply with quote

are you trying to play with or without PA?
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Mar 22, 2015 7:30 pm    Post subject: Reply with quote

@Naib:

I originally had tried to play it with PA but to no avail

the PULSE_LATENCY_MSEC setting also made no difference
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Sun Mar 22, 2015 10:29 pm    Post subject: Reply with quote

mmm thats odd because I have all steam game (that are linux native or wrapper) working fine via PA
Saying that I kinda only play CS:GO, L4D2, TF2, DOTA2, SatReign.
I don't have metro

Code:

cat ~/.config/openbox/environment
#
# Set system-wide environment variables here for Openbox
# User-specific variables should be placed in $HOME/.config/openbox/environment
#

# To set your language for displaying messages and time/date formats, use the following:
#LANG=en_CA.UTF8

# To set your keyboard layout, you need to modify your X config:
# http://www.google.com/search?q=how+to+set+keyboard+layout+xorg
#XLIB_SKIP_ARGB_VISUALS=1
#
export SDL_AUDIODRIVER="pulse"
export OOO_FORCE_DESKTOP=gnome
export BROWSER="chrome"
export STEAM_RUNTIME=1 # steam workaround
export STEAM_FRAME_FORCE_CLOSE=1
export __GL_THREADED_OPTIMIZATIONS=1
export NO_AT_BRIDGE=1 # stop the dbus accessibility warning

_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Mar 22, 2015 10:37 pm    Post subject: Reply with quote

__GL_THREADED_OPTIMIZATIONS=1 might actually slow down most of the games:

http://www.phoronix.com/scan.php?page=article&item=nvidia-t2015-optimizations&num=1


hm, perhaps Metro needs SDL_AUDIODRIVER="pulse" and it doesn't matter whether alsa or pulse is used,

so the issue lies within SDL instead of Metro ?

I'll give that a try - thanks Naib !
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum