Bug#724971: steam: Please make audio driver easily configurable
Steven McDonald
steven at steven-mcdonald.id.au
Mon Sep 30 05:30:15 UTC 2013
Package: steam
Version: 1.0.0.39-2sjm1
Severity: wishlist
Tags: patch
Hi there,
It would be convenient to be able to configure Steam on a system-wide or
(at the user's option) per-user basis to use an audio driver other than
PulseAudio. Currently, this is possible by manually setting the
SDL_AUDIODRIVER environment variable, but that's somewhat clunky and
requires either running Steam from a shell or modifying the package
files.
I'm attaching a patch which will have /usr/games/steam look in
/etc/default/steam and "${config}/defaults" (in that order) for
STEAM_AUDIO_DRIVER and STEAM_AUDIO_DEVICE settings, and set the
appropriate environment variables when running Steam based on these. I've
also created a README.Debian to document the change for users (also
included in the patch).
This has been implemented in a generic and future-proof way that permits
both re-using the same config file for other settings in the future, and
hiding implementation details (like the fact that Steam uses SDL for
audio) from the user.
I have done some rudimentary testing of this patch and it works as
intended on my system. Please let me know if you see any obvious problems
with the change, and I'll get it fixed up.
Thanks,
Steven.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (800, 'unstable'), (700, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.10-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages steam depends on:
ii debconf [debconf-2.0] 1.5.51
ii libc6 2.17-92+b1
ii libgl1-mesa-dri 9.1.6-2+b1
ii libgl1-mesa-glx 9.1.6-2+b1
ii libstdc++6 4.8.1-10
ii libx11-6 2:1.6.1-1
ii libxau6 1:1.0.8-1
ii libxcb1 1.9.1-3
ii libxdmcp6 1:1.1.1-1
ii multiarch-support 2.17-92+b1
ii xterm 297-1
Versions of packages steam recommends:
pn zenity <none>
steam suggests no packages.
-- debconf information:
* steam/question: I AGREE
* steam/license:
steam/purge:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: steam_user_config.patch
Type: text/x-diff
Size: 2166 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20130930/9844d5b3/attachment.patch>
More information about the Pkg-games-devel
mailing list