blob: 56bac12efd660aee5eb4d6b8c005aaf08dc7e62e [file] [log] [blame]
Taylor Holbertoneea43892016-10-02 11:35:35 -04001.TH TINYPLAY 1 "October 2, 2016" "tinyplay" "TinyALSA"
2
3.SH NAME
4tinyplay \- sends audio to an audio device
5
6.SH SYNOPSIS
7.B tinyplay\fR \fIfile\fR [ \fIoptions\fR ]
8
9.SH Description
10
11\fBtinyplay\fR can send audio to an audio device from a wav file or standard input (as raw samples).
12Options can be used to specify various hardware parameters to open the PCM with.
13
14.SH OPTIONS
15
16.TP
Taylor Holberton84a74a72016-11-19 10:12:44 -080017\fB\-D, --card\fR \fIcard\fR
Taylor Holbertoneea43892016-10-02 11:35:35 -040018Card number of the PCM.
Taylor Holberton84abf1e2016-10-02 12:11:49 -040019The default is 0.
Taylor Holbertoneea43892016-10-02 11:35:35 -040020
21.TP
Taylor Holberton84a74a72016-11-19 10:12:44 -080022\fB\-d, --device\fR \fIdevice\fR
Taylor Holbertoneea43892016-10-02 11:35:35 -040023Device number of the PCM.
Taylor Holberton84abf1e2016-10-02 12:11:49 -040024The default is 0.
Taylor Holbertoneea43892016-10-02 11:35:35 -040025
26.TP
Taylor Holberton84a74a72016-11-19 10:12:44 -080027\fB\-c, --channels\fR \fIchannels\fR
Taylor Holbertoneea43892016-10-02 11:35:35 -040028Number of channels the PCM will have.
29This option is only valid for raw file types.
30The default is 2 for raw file types.
31
32.TP
Taylor Holberton84a74a72016-11-19 10:12:44 -080033\fB\-r, --rate\fR \fIrate\fR
Taylor Holbertoneea43892016-10-02 11:35:35 -040034Number of frames per second of the PCM.
35This option is only valid for raw file types.
36The default is 48000 for raw file types.
37
38.TP
Taylor Holberton84a74a72016-11-19 10:12:44 -080039\fB\-i, --file-type\fR \fIfile-type\fR
Taylor Holbertoneea43892016-10-02 11:35:35 -040040The file type used for playback.
41Available types are \fIraw\fR and \fIwav\fR.
42Specifying \fIraw\fR means that \fIchannels\fR, \fIrate\fR and \fIbits\fR may have to be specified as well.
Taylor Holberton84a74a72016-11-19 10:12:44 -080043By default, the file type is determined by the file name.
44Specifying the file type with this option will take precedent over the one determined by the file name.
Taylor Holbertoneea43892016-10-02 11:35:35 -040045
46.TP
Taylor Holberton84a74a72016-11-19 10:12:44 -080047\fB\-b, --bits\fR \fIbits\fR
Taylor Holbertoneea43892016-10-02 11:35:35 -040048Number of bits per sample the PCM will have.
49This option is only valid for raw file types.
50The default is 16 for raw file types.
51
52.TP
Taylor Holberton84a74a72016-11-19 10:12:44 -080053\fB\-p, --period-size\fR \fIperiod_size\fR
Taylor Holbertoneea43892016-10-02 11:35:35 -040054Number of frames in a period.
55The default is 1024.
56
57.TP
Taylor Holberton84a74a72016-11-19 10:12:44 -080058\fB\-n, --period-count\fR \fIperiods\fR
Taylor Holbertoneea43892016-10-02 11:35:35 -040059Number of periods the PCM will have.
60The default is 4.
61
62.SH SIGNALS
63
64When playing audio, SIGINT will stop the playback and close the file.
65
66.SH EXAMPLES
67
68.TP
69\fBtinyplay output.wav\fR
70Plays a file called output.wav.
71
72.TP
73\fBtinyplay output.wav -D 1
74Plays a file called output.wav on card 1.
75
76.TP
77\fBtinyplay output.raw -i raw --channels 2 --rate 44100 --bits 32
78Plays a raw audio file called output.raw; using 2 channels, 44100 frames per second and 32 bits per sample.
79
80.SH BUGS
81
82Please report bugs to https://github.com/tinyalsa/tinyalsa/issues.
83
84.SH SEE ALSO
85
86.BR tinycap(1),
87.BR tinymix(1),
88.BR tinypcminfo(1)
89
90.SH AUTHORS
91Simon Wilson
92.P
93For a complete list of authors, visit the project page at https://github.com/tinyalsa/tinyalsa.
94