From: Jaroslav Kysela Date: Thu, 4 Oct 2001 07:59:54 +0000 (+0000) Subject: Added aoss script from James Tappin . X-Git-Tag: v1.0.3~71 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=1f49555ec57657cbbabaa2a50bd3ca4183950bb3;p=alsa-oss.git Added aoss script from James Tappin . --- diff --git a/Makefile.am b/Makefile.am index 7ec0fe5..8c2e96f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,8 +1,16 @@ lib_LTLIBRARIES = libaoss.la +bin_SCRIPTS = aoss +man_MANS = aoss.1 libaoss_la_SOURCES = alsa-oss.c libaoss_la_LIBADD = -ldl -lasound +aoss: aoss.in + sed -e "s+PREFIX+$(libdir)+" $(srcdir)/aoss.in > aoss + +clean: + rm -f aoss + dist-hook: echo $(VERSION) >> version -chmod -R a+r $(distdir) diff --git a/aoss.1 b/aoss.1 new file mode 100644 index 0000000..c56168b --- /dev/null +++ b/aoss.1 @@ -0,0 +1,28 @@ +.TH AOSS 1 "3 October 2001" +.SH NAME +aoss \- Wrapper script to facilitate use of the ALSA OSS compatibility +library. +.SH SYNOPSYS +\fBaoss\fP \fIosscommand\fP [arguments] + +.SH DESCRIPTION +\fBaoss\fP is a simple wrapper script which facilitates the use of the +ALSA OSS compatibility library. It just sets the appropriate LD_PRELOAD +path and then runs the command. + +This is useful in cases where routing settings (which can be made in +your .asoundrc file) need to be applied to commands that use the OSS +API. + +.SS Arguments +.TP +\fIosscommand\fP +A command that uses the OSS API +.TP +\fIarguments\fP +The appropriate arguments and options for the OSS command. +.TP + +.SH AUTHORS +The OSS compatibility library is by Abramo Bagnara +The aoss script and this document are by James Tappin diff --git a/aoss.in b/aoss.in new file mode 100644 index 0000000..9ffe776 --- /dev/null +++ b/aoss.in @@ -0,0 +1,7 @@ +#!/bin/sh + +# A simple script to facilitate the use of the OSS compatibility library. +# Usage: +# aoss + +LD_PRELOAD=PREFIX/libaoss.so $*