diff --git a/package/blindcoder/nas/etc_nas_nasd.conf b/package/blindcoder/nas/etc_nas_nasd.conf new file mode 100644 index 000000000..c5d4e64f4 --- /dev/null +++ b/package/blindcoder/nas/etc_nas_nasd.conf @@ -0,0 +1,42 @@ +# ROCK Linux Config file for nasd +# + +# set this to 0 for no debugging, a larger number equals more debugging +# info... +Debug 0 + +# Do not be verbose. Remove the # to enable verbosity +# Verbose + +# set this to "yes" or "no" to indicate whether nasd should release the +# audio device when finished playing a sound. +# Only the voxware, hpux, and sun servers understand this for now. +ReleaseDevice "yes" + +# init the mixer on startup? Voxware only. +MixerInit "yes" + +# This is used on hpux. Set to "INT" to use the internal speaker, +# set to "EXT" to use the external device (headphone/speakers). +OutDevType "EXT" + +# These are all used by voxware, nowhere else yet. + +inputsection + + device "/dev/sounh/dsp" # The input device, usually + mixer "/dev/sound/mixer" # mixer device + gain 50 # default input gain (0-100) + maxrate 44100 + minrate 4000 # Kind of redundant + maxfrags 3 # We want really low latency + minfrags 2 # the default + fragsize 256 # Again, for low latency + wordsize 8 # It only handles 8 bits anyway + numchans 2 # Glorious living mono + forcerate "no" # forces input rate to current + autoOpen "no" # whether to open the dev + # at init + readwrite "no" # open read only if "no" +end + diff --git a/package/blindcoder/nas/nas.conf b/package/blindcoder/nas/nas.conf new file mode 100644 index 000000000..552320929 --- /dev/null +++ b/package/blindcoder/nas/nas.conf @@ -0,0 +1,2 @@ +makeopt="World" +postmake="mkdir -p ${root}/etc/nas; install -m 644 ${confdir}/etc_nas_nasd.conf ${root}/etc/nas/nasd.conf ; install_init nasd ${confdir}/nasd.init" diff --git a/package/blindcoder/nas/nas.desc b/package/blindcoder/nas/nas.desc new file mode 100644 index 000000000..9c87ee33a --- /dev/null +++ b/package/blindcoder/nas/nas.desc @@ -0,0 +1,40 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/blindcoder/nas/nas.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] A network-transparent, client/server audio transport system. + +[T] In a nutshell, the Network Audio System (NAS) is the audio equivalent of an X display server. It was developed by NCD for playing, recording, and manipulating audio data over a network. Like the X Window System, it uses the client/server model to separate applications from the specific drivers that control audio input and output devices. + +[U] http://freshmeat.net/projects/nas/ + +[A] Jon Trulson +[M] Benjamin Schieder + +[C] extra/multimedia + +[L] MIT +[S] Stable +[V] 1.6 +[P] X -----5---9 800.000 + +[D] 831090079 nas-1.6.src.tar.gz http://radscan.com/nas/ diff --git a/package/blindcoder/nas/nasd.init b/package/blindcoder/nas/nasd.init new file mode 100644 index 000000000..a544b2ef6 --- /dev/null +++ b/package/blindcoder/nas/nasd.init @@ -0,0 +1,39 @@ +#!/bin/sh +# +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/blindcoder/nas/nasd.init +# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- +# +# Desc: Netwark Attached Sound Daemon +# Runlevel: 99 rcX +# + +main_begin + + block_begin(start, `Starting Network Attached Sound Daemon') + check(`D_prefix/X11/bin/nasd -aa -b') + block_end + + block_begin(stop, `Stopping Network Attached Sound Daemon') + check(`killall -15 D_prefix/X11/bin/nasd') + block_end + +main_end