Google
 

Open Sound System
OSS 4.x User's Guide

Do you have problems with sound/audio application development? Don't panic! Click here for help!

ossplay - Open Sound System playback program.

SYNOPSIS

ossplay [-FRhlvq] [-S secs ] [ -c channels ] [ -d devname ] [ -f fmtname | ? ] [ -g gain ] [ -o playtarget | ? ]
[ -s rate ] filename | - ...

ossplay plays raw PCM, Microsoft RIFF (.wav), Sun ULaw (.au), Mac AIFF (.aif) and other types of audio files. By default the application will try to determine the audio file's format and play audio based on the stored inforation about sample format, number of channels and sampling rate.

OPTIONS

ItemDescription
-vVerbose output. Multiple invocations increase the level of verbosity.
-qQuiet (no information printed).
-lLoop playback indefinately.
-d<devname>Select <devname> as the device (eg -d/dev/dsp2).
-s<rate>Select the playback rate for raw PCM audio (eg -s48000).
-c<channelsSelect the number of channels 1=mono 2=stereo, 4, 6, 8, etc.
-f<fmtname>Select the input format (eg -fU8 or -fS16_BE).
-f?Prints the list of supported format names.
-o<playtarget>Selects the play target name if the device supports multiple play targets (such as front, rear, side).
-o?Prints the list of available play targets. -g<gain>Amplify all played samples by percentage given as argument. 100 (default) means normal signal level, 200 means double level.
-FTreat all input as raw PCM data.
-RDisable redirection to virtual mixer engines and sample rate/format conversions. Should not be used unless absolutely
necessary.
-S<secs>
Start playing at <secs> seconds from start of file. The argument can contain a fractional part (e.g. -S1.2)
-hDisplay usage information.

INTERRUPT

Sending a SIGQUIT (Ctrl-\\ in most terminals) will make ossplay stop playing the currently played file and skip to the next file.

NOTES

The ossplay executable is the same as the ossrecord executable. Behaviour is decided by the name used to invoke the program.

SEE ALSO

ossrecord , ossmix(1), ossxmix(1)

FILES

/usr/bin/ossplay

AUTHOR

4Front Technologies



Copyright (C) 4Front Technologies, 2007. All rights reserved.
Back to index OSS web site