[nas] Add support for specifying nasd config file

Steve McIntyre steve at einval.com
Tue Feb 10 17:32:41 MST 2004


On Mon, Feb 09, 2004 at 02:38:23PM -0700, Jon Trulson wrote:
>On Sat, 7 Feb 2004, Steve McIntyre wrote:
>
>> I've had a feature request from a Debian user who wants to use nas to
>> control multiple sound cards. This is difficult at the moment, as a
>> single server only supports a single input/output device pair. An easy
>> way to make this work would be to run multiple instances of nasd, one
>> for each card. There is currently no way to tell the server to use a
>> specific config file to make this happen. The attached patch seems to
>> work for me - use the -config <file> option to specify a non-default
>> config file on the nasd command line.
>>
>> What do you think?
>>
>
>	That looks tasty.  I will apply the patch and see if it works :)

Just one minor change - a silly bug in FindConfigFile():

sledge:~/debian/nas/nas-1.6b/server/os$ diff -ub utils.c~ utils.c
--- utils.c~    2004-02-06 23:51:21.000000000 +0000
+++ utils.c     2004-02-11 00:30:21.000000000 +0000
@@ -306,6 +306,7 @@
              }
          }
      }
+    return NULL; /* Not found */
 }
 
 


-- 
Steve McIntyre, Cambridge, UK.                                steve at einval.com
You lock the door
And throw away the key
There's someone in my head but it's not me 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://radscan.com/pipermail/nas/attachments/20040211/54782962/attachment.pgp>


More information about the Nas mailing list