Package: nas
Version: 1.7-3
Severity: wishlist
Tags: patch

It would be neat if the attached patch could be applied to the Debian
package. It makes it easier to have sound enabled for both networked and
local applications.

If you think the patch needs more work, please let me know. If you have
a better suggestion for sharing a sound device than using alsa with
dmix, that would be interesting. Only using nas enabled applications
running locally was something I tried until now, but that's not easy.
--
/Martin
diff -ur nas-1.7/debian/nas.default nas-1.7-aoss/debian/nas.default
--- nas-1.7/debian/nas.default  2006-01-02 20:45:41.088731512 +0100
+++ nas-1.7-aoss/debian/nas.default     2006-01-02 18:47:45.668358904 +0100
@@ -3,3 +3,6 @@
 
 # Options to pass to nasd
 NASD_OPTS=
+
+# Set this to 1 and make sure alsa-oss is installed to use alsa
+NASD_AOSS="0"
diff -ur nas-1.7/debian/rc.nas nas-1.7-aoss/debian/rc.nas
--- nas-1.7/debian/rc.nas       2006-01-02 20:45:41.097730144 +0100
+++ nas-1.7-aoss/debian/rc.nas  2006-01-02 20:25:49.428891344 +0100
@@ -10,6 +10,9 @@
 case "$1" in
   start)
     echo Starting the Network Audio System
+    [ "$NASD_AOSS" = "1" ] && /usr/bin/aoss \
+    start-stop-daemon --start --quiet --startas /usr/bin/start-nas \
+                                               --exec /usr/bin/nasd -- 
$NASD_OPTS ||
     start-stop-daemon --start --quiet --startas /usr/bin/start-nas \
                                                --exec /usr/bin/nasd -- 
$NASD_OPTS
     ;;

Reply via email to