From 1f49555ec57657cbbabaa2a50bd3ca4183950bb3 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 4 Oct 2001 07:59:54 +0000 Subject: [PATCH] Added aoss script from James Tappin . --- Makefile.am | 8 ++++++++ aoss.1 | 28 ++++++++++++++++++++++++++++ aoss.in | 7 +++++++ 3 files changed, 43 insertions(+) create mode 100644 aoss.1 create mode 100644 aoss.in 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 $* -- 2.47.1