1 .\" $NetBSD: audioplay.1,v 1.20 2003/03/31 02:40:25 perry Exp $
3 .\" Copyright (c) 1998-2002 Matthew R. Green
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20 .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22 .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45 .Op Fl s Ar sample-rate
51 program copies the named audio files, or the standard input if no files are
52 named, to the audio device.
55 is assumed to mean the standard input.
56 The input files must contain a valid audio header, and the encoding must be
57 understood by the underlying driver.
59 The following options are available:
60 .Bl -tag -width 123456
62 If the audio device cannot be opened, exit now rather than wait for it.
70 Set the volume (gain) to
72 This value must be between 0 and 255.
76 This value must be between 0 and 63.
78 Set the output port to
88 Set the audio device to be
93 Force playing, even if the format is unknown.
96 flag can be used in addition with the following flags to
97 change the number of channels, encoding, precision and
100 when combined with the
102 option, sets the number of channels to its argument.
104 when combined with the
106 option, sets the encoding to its argument.
123 .Cm mpeg_l1_packets ,
126 .Cm mpeg_l2_packets ,
130 when combined with the
132 option, sets the precision to its argument.
133 This value must be either 4, 8, 16, 24 or 32.
135 when combined with the
137 option, sets the sample rate to its argument.
138 This value must be a valid value for the audio device or an error will
142 .Bl -tag -width AUDIOCTLDEVICE
144 the audio control device to be used.
146 the audio device to be used.
149 Play a raw dump taken from an audio CD ROM:
151 .Dl "audioplay -f -c 2 -P 16 -s 44100 -e slinear_le filename"
155 program can be used to show the available supported encodings:
157 .Dl "audioctl encodings"
160 can be used to play Sun/NeXT audio files, and also RIFF WAVE audio files.
162 can be configured in the
164 web browser as the program to use when playing audio files.
166 If the audio device or the control device can not be opened, and error is
169 If an invalid parameter is specified, an error is returned.
170 The set of valid values for any audio parameter is specified by the
201 program was first seen in SunOS 5.
205 was first made available in
210 program was written by
211 .An Matthew R. Green Aq mrg@eterna.com.au .