tinyplay - sends audio to an audio device

NAME  SYNOPSIS  Description  OPTIONS  SIGNALS  EXAMPLES  BUGS  SEE ALSO  AUTHORS 

NAME

tinyplay − sends audio to an audio device

SYNOPSIS

tinyplay file [ options ]

Description

tinyplay can send audio to an audio device from a wav file or standard input (as raw samples). Options can be used to specify various hardware parameters to open the PCM with.

OPTIONS

−D, --card card

Card number of the PCM. The default is 0.

−d, --device device

Device number of the PCM. The default is 0.

−c, --channels channels

Number of channels the PCM will have. This option is only valid for raw file types. The default is 2 for raw file types.

−r, --rate rate

Number of frames per second of the PCM. This option is only valid for raw file types. The default is 48000 for raw file types.

−i, --file-type file-type

The file type used for playback. Available types are raw and wav. Specifying raw means that channels, rate and bits may have to be specified as well. By default, the file type is determined by the file name. Specifying the file type with this option will take precedent over the one determined by the file name.

−b, --bits bits

Number of bits per sample the PCM will have. This option is only valid for raw file types. The default is 16 for raw file types.

−p, --period-size period_size

Number of frames in a period. The default is 1024.

−n, --period-count periods

Number of periods the PCM will have. The default is 4.

SIGNALS

When playing audio, SIGINT will stop the playback and close the file.

EXAMPLES

tinyplay output.wav

Plays a file called output.wav.

tinyplay output.wav -D 1

Plays a file called output.wav on card 1.

tinyplay output.raw -i raw --channels 2 --rate 44100 --bits 32

Plays a raw audio file called output.raw; using 2 channels, 44100 frames per second and 32 bits per sample.

BUGS

Please report bugs to https://github.com/tinyalsa/tinyalsa/issues.

SEE ALSO

tinycap(1), tinymix(1), tinypcminfo(1)

AUTHORS

Simon Wilson

For a complete list of authors, visit the project page at https://github.com/tinyalsa/tinyalsa.


Updated 2024-01-29 - jenkler.se | uex.se