Your message dated Fri, 08 Aug 2014 18:33:52 +0000
with message-id <[email protected]>
and subject line Bug#724971: fixed in steam 1.0.0.48-2
has caused the Debian Bug report #724971,
regarding steam: Please make audio driver easily configurable
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
724971: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724971
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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:
diff -urNd steam-1.0.0.39.orig/debian/README.Debian steam-1.0.0.39/debian/README.Debian
--- steam-1.0.0.39.orig/debian/README.Debian	1970-01-01 10:00:00.000000000 +1000
+++ steam-1.0.0.39/debian/README.Debian	2013-09-30 13:53:28.000000000 +1000
@@ -0,0 +1,33 @@
+Debian's Steam package exposes some configuration parameters. You can
+place these in one of two configuration files:
+
+  System-wide config file:
+    /etc/default/steam
+
+  Per-user config file:
+    ~/.steam/defaults
+
+
+
+Currently supported parameters are:
+
+
+  STEAM_AUDIO_DRIVER
+    This can be used to override the audio driver used by SDL. If unset,
+    'pulse' (PulseAudio) will be used. Possible values include 'alsa' and
+    'oss', although the full list will depend on your platform and your
+    build of SDL. Note that this is not the *system* build of SDL; it is
+    built separately as part of each user's Steam installation.
+
+    Notably, 'jack' is *not* a valid driver.
+
+    Example (to use ALSA instead of PulseAudio):
+      STEAM_AUDIO_DRIVER=alsa
+
+
+  STEAM_AUDIO_DEVICE
+    This is a driver-specific representation of the audio device to use.
+
+    Example (to use first audio device with ALSA):
+      STEAM_AUDIO_DRIVER=alsa
+      STEAM_AUDIO_DEVICE=hw:0,0
diff -urNd steam-1.0.0.39.orig/debian/scripts/steam steam-1.0.0.39/debian/scripts/steam
--- steam-1.0.0.39.orig/debian/scripts/steam	2013-05-28 05:26:58.000000000 +1000
+++ steam-1.0.0.39/debian/scripts/steam	2013-09-30 13:32:19.000000000 +1000
@@ -8,6 +8,16 @@
 ubuntu32=$config/ubuntu12_32
 exe=$ubuntu32/steam
 
+# Load system-wide and per-user configuration
+if [ -f /etc/default/steam -a -r /etc/default/steam ]; then
+	. /etc/default/steam
+fi
+if [ -f "${config}/defaults" -a -r "${config}/defaults" ]; then
+	. "${config}/defaults"
+fi
+[ -z "$STEAM_AUDIO_DRIVER" ] || export SDL_AUDIODRIVER="$STEAM_AUDIO_DRIVER"
+[ -z "$STEAM_AUDIO_DEVICE" ] || export AUDIODEV="$STEAM_AUDIO_DEVICE"
+
 # launch steam / do an initial update when the exe does not already exist
 test ! -d $config && rm -rf $config && mkdir -p $config || true
 test ! -e $config/steam.sh && rm -rf $config/package $exe || true

--- End Message ---
--- Begin Message ---
Source: steam
Source-Version: 1.0.0.48-2

We believe that the bug you reported is fixed in the latest version of
steam, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Gilbert <[email protected]> (supplier of updated steam package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 08 Aug 2014 17:45:30 +0000
Source: steam
Binary: steam
Architecture: source i386
Version: 1.0.0.48-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Games Team <[email protected]>
Changed-By: Michael Gilbert <[email protected]>
Description:
 steam      - Valve's Steam digital software delivery system
Closes: 724971
Changes:
 steam (1.0.0.48-2) unstable; urgency=medium
 .
   * Add README.debian with some audio configuration tips (closes: #724971).
Checksums-Sha1:
 5cbf3b835db71186e49571f311613e61abf80b92 2508 steam_1.0.0.48-2.dsc
 e161306b79b6b6532c910e479c7dde886587b085 8376 steam_1.0.0.48-2.debian.tar.xz
 2ba50841103a0a92af3e14c4b7c013d30c45ec24 874512 steam_1.0.0.48-2_i386.deb
Checksums-Sha256:
 c817a8db00fef56a8638c6e7995f68ab4d0af3a7b41e512d26f7d857459d6130 2508 
steam_1.0.0.48-2.dsc
 d3e35d6d28528f822edcc0697e6149104dd436fcf8a0b240efc93373f86b8b49 8376 
steam_1.0.0.48-2.debian.tar.xz
 3227e81e05d6712b7badf39b7694e258d86e32b6987af431c84cb2af77477ae7 874512 
steam_1.0.0.48-2_i386.deb
Files:
 5df876fe10d178662179adf5b3650066 874512 non-free/games extra 
steam_1.0.0.48-2_i386.deb
 f91dcdfab1df2d7aafa22f77735f9ad5 2508 non-free/games extra steam_1.0.0.48-2.dsc
 82b3d3c25740b164d3afa64c79821c4b 8376 non-free/games extra 
steam_1.0.0.48-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQQcBAEBCgAGBQJT5Rb/AAoJELjWss0C1vRzcAUgALHF34TCp/ZaiedwyjMQ86tj
6FelMG4nLrIaiGzM2bKTZvqFgif2vdC0mPFas6vxhqdLyTRep0irihHVn9MucqTA
eKF8W6BiRZmiLZV7xhcQg0W2/qHMLRKj6XMtvl6InCknLZ2UzoV7adGjImp5C88A
hUfukEtTkB5jVrDH1VxZKQRHeHcXnXDorFNV2aE7O8+iQgucxiccZuCk8Q2ubSeX
oq814Iz1TnB0VkM4C+71PYnQwAlPg/6dXAe+f2+Yk9VJCiE7c+7b26nY21VXPRbn
ewtPJxbgo98AooqO4kD5DS4pGN1thM8okrtjpQzdEUbEB+kQL9b2YB0CCVbGTpep
wCJL48GlCwVUQlEy7dH7P6KrA0j8LS7JLtea7jMnAcVfztWeC8zAMImndEN3SYh9
DyZtudQBDrmCydEjicWoMEQBaG/LzFo2ZnNpOnVRRuu/p7ChFkMWTlwFxo9AO0dF
QcNZYGLvx0W3qWxzSGG+IM652UqYkVqBbRd2Q5bjMbmXwWIKUylwtVqRDZxwsRUh
f0j1vrqgKrEM1VTQJtIiee5VV3NDhZfRs3IrN3VHmuEGJyGFdUo21YzY0VcHB2GQ
NXrRGUIeNcOzlMFv7/iMJZYo/FC06+3h2vdayW0NTdafRm37kR+aoBnd680YD+6g
AOHuZuWkKazx4zBQz5KQBXteu82+EYkB9izg9I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