What does aplay do when there is an error?

What does aplay do when there is an error?

Disables recovery attempts when errors (e.g. xrun) are encountered; the aplay process instead aborts immediately. When recording, SIGINT, SIGTERM and SIGABRT will close the output file and exit. SIGUSR1 will close the output file, open a new one, and continue recording.

What should the default rate be for aplay?

The default rate is 8000 Hertz. If the value specified is less than 300, it is taken as the rate in kilohertz. Valid values are 2000 through 192000 Hertz. Interrupt after # seconds. A value of zero means infinity.

What happens when aplay does not support channel override?

If a device supports the override of the channel map, aplay tries to pass the given channel map. If it doesn’t support the channel map override but still it provides the channel map information, aplay tries to rearrange the channel order in the buffer to match with the returned channel map from the device.

How to set the buffer time in aplay?

If no period time and no period size is given then a quarter of the buffer time is set. Buffer duration is # microseconds If no buffer time and no buffer size is given then the maximal allowed buffer time but not more than 500ms is set.

How does aplay work with interleaved mode?

If recording with interleaved mode samples the file is automatically split before the 2GB filesize. aplay is much the same, only it plays instead of recording. For supported soundfile formats, the sampling rate, bit depth, and so forth can be automatically determined from the soundfile header.

What’s the maximum size of an aplay file?

Default is the maximum size supported by the file format: 2 GiB for WAV files. This option has no effect if –separate-channels is specified. aplay writes its process ID here, so other programs can send signals to it. When recording, interpret %-codes in the file name parameter using the strftime facility whenever the output file is opened.