Functions | |
| int | snd_pcm_format_signed (snd_pcm_format_t format) |
| Return sign info for a PCM sample linear format. | |
| int | snd_pcm_format_unsigned (snd_pcm_format_t format) |
| Return sign info for a PCM sample linear format. | |
| int | snd_pcm_format_linear (snd_pcm_format_t format) |
| Return linear info for a PCM sample format. | |
| int | snd_pcm_format_float (snd_pcm_format_t format) |
| Return float info for a PCM sample format. | |
| int | snd_pcm_format_little_endian (snd_pcm_format_t format) |
| Return endian info for a PCM sample format. | |
| int | snd_pcm_format_big_endian (snd_pcm_format_t format) |
| Return endian info for a PCM sample format. | |
| int | snd_pcm_format_cpu_endian (snd_pcm_format_t format) |
| Return endian info for a PCM sample format. | |
| int | snd_pcm_format_width (snd_pcm_format_t format) |
| Return nominal bits per a PCM sample. | |
| int | snd_pcm_format_physical_width (snd_pcm_format_t format) |
| Return bits needed to store a PCM sample. | |
| snd_pcm_format_t | snd_pcm_build_linear_format (int width, int pwidth, int unsignd, int big_endian) |
| Compose a PCM sample linear format. | |
| ssize_t | snd_pcm_format_size (snd_pcm_format_t format, size_t samples) |
| Return bytes needed to store a quantity of PCM sample. | |
| u_int8_t | snd_pcm_format_silence (snd_pcm_format_t format) |
| Return 8 bit expressing silence for a PCM sample format. | |
| u_int16_t | snd_pcm_format_silence_16 (snd_pcm_format_t format) |
| Return 16 bit expressing silence for a PCM sample format. | |
| u_int32_t | snd_pcm_format_silence_32 (snd_pcm_format_t format) |
| Return 32 bit expressing silence for a PCM sample format. | |
| u_int64_t | snd_pcm_format_silence_64 (snd_pcm_format_t format) |
| Return 64 bit expressing silence for a PCM sample format. | |
| int | snd_pcm_format_set_silence (snd_pcm_format_t format, void *buf, unsigned int samples) |
| Silence a PCM samples buffer. | |
| snd_pcm_sframes_t | snd_pcm_bytes_to_frames (snd_pcm_t *pcm, ssize_t bytes) |
| Convert bytes in frames for a PCM. | |
| ssize_t | snd_pcm_frames_to_bytes (snd_pcm_t *pcm, snd_pcm_sframes_t frames) |
| Convert frames in bytes for a PCM. | |
| long | snd_pcm_bytes_to_samples (snd_pcm_t *pcm, ssize_t bytes) |
| Convert bytes in samples for a PCM. | |
| ssize_t | snd_pcm_samples_to_bytes (snd_pcm_t *pcm, long samples) |
| Convert samples in bytes for a PCM. | |
| int | snd_pcm_area_silence (const snd_pcm_channel_area_t *dst_channel, snd_pcm_uframes_t dst_offset, unsigned int samples, snd_pcm_format_t format) |
| Silence an area. | |
| int | snd_pcm_areas_silence (const snd_pcm_channel_area_t *dst_channels, snd_pcm_uframes_t dst_offset, unsigned int channels, snd_pcm_uframes_t frames, snd_pcm_format_t format) |
| Silence one or more areas. | |
| int | snd_pcm_area_copy (const snd_pcm_channel_area_t *dst_channel, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_channel, snd_pcm_uframes_t src_offset, unsigned int samples, snd_pcm_format_t format) |
| Copy an area. | |
| int | snd_pcm_areas_copy (const snd_pcm_channel_area_t *dst_channels, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_channels, snd_pcm_uframes_t src_offset, unsigned int channels, snd_pcm_uframes_t frames, snd_pcm_format_t format) |
| Copy one or more areas. | |
See the PCM (digital audio) interface page for more details.
| int snd_pcm_area_copy | ( | const snd_pcm_channel_area_t * | dst_area, | |
| snd_pcm_uframes_t | dst_offset, | |||
| const snd_pcm_channel_area_t * | src_area, | |||
| snd_pcm_uframes_t | src_offset, | |||
| unsigned int | samples, | |||
| snd_pcm_format_t | format | |||
| ) |
Copy an area.
| dst_area | destination area specification
|
| int snd_pcm_area_silence | ( | const snd_pcm_channel_area_t * | dst_area, | |
| snd_pcm_uframes_t | dst_offset, | |||
| unsigned int | samples, | |||
| snd_pcm_format_t | format | |||
| ) |
Silence an area.
| dst_area | area specification
|
| int snd_pcm_areas_copy | ( | const snd_pcm_channel_area_t * | dst_areas, | |
| snd_pcm_uframes_t | dst_offset, | |||
| const snd_pcm_channel_area_t * | src_areas, | |||
| snd_pcm_uframes_t | src_offset, | |||
| unsigned int | channels, | |||
| snd_pcm_uframes_t | frames, | |||
| snd_pcm_format_t | format | |||
| ) |
Copy one or more areas.
| dst_areas | destination areas specification (one for each channel)
|
| int snd_pcm_areas_silence | ( | const snd_pcm_channel_area_t * | dst_areas, | |
| snd_pcm_uframes_t | dst_offset, | |||
| unsigned int | channels, | |||
| snd_pcm_uframes_t | frames, | |||
| snd_pcm_format_t | format | |||
| ) |
Silence one or more areas.
| dst_areas | areas specification (one for each channel)
|
| snd_pcm_format_t snd_pcm_build_linear_format | ( | int | width, | |
| int | pwidth, | |||
| int | unsignd, | |||
| int | big_endian | |||
| ) |
Compose a PCM sample linear format.
| width | Nominal bits per sample
|
| snd_pcm_sframes_t snd_pcm_bytes_to_frames | ( | snd_pcm_t * | pcm, | |
| ssize_t | bytes | |||
| ) |
Convert bytes in frames for a PCM.
| pcm | PCM handle
|
| long snd_pcm_bytes_to_samples | ( | snd_pcm_t * | pcm, | |
| ssize_t | bytes | |||
| ) |
Convert bytes in samples for a PCM.
| pcm | PCM handle
|
| int snd_pcm_format_big_endian | ( | snd_pcm_format_t | format | ) |
Return endian info for a PCM sample format.
| format | Format
|
| int snd_pcm_format_cpu_endian | ( | snd_pcm_format_t | format | ) |
Return endian info for a PCM sample format.
| format | Format
|
| int snd_pcm_format_float | ( | snd_pcm_format_t | format | ) |
Return float info for a PCM sample format.
| format | Format
|
| int snd_pcm_format_linear | ( | snd_pcm_format_t | format | ) |
Return linear info for a PCM sample format.
| format | Format
|
| int snd_pcm_format_little_endian | ( | snd_pcm_format_t | format | ) |
Return endian info for a PCM sample format.
| format | Format
|
| int snd_pcm_format_physical_width | ( | snd_pcm_format_t | format | ) |
Return bits needed to store a PCM sample.
| format | Sample format
|
| int snd_pcm_format_set_silence | ( | snd_pcm_format_t | format, | |
| void * | data, | |||
| unsigned int | samples | |||
| ) |
Silence a PCM samples buffer.
| format | Sample format
|
| int snd_pcm_format_signed | ( | snd_pcm_format_t | format | ) |
Return sign info for a PCM sample linear format.
| format | Format
|
| u_int8_t snd_pcm_format_silence | ( | snd_pcm_format_t | format | ) |
Return 8 bit expressing silence for a PCM sample format.
| format | Sample format
|
| u_int16_t snd_pcm_format_silence_16 | ( | snd_pcm_format_t | format | ) |
Return 16 bit expressing silence for a PCM sample format.
| format | Sample format
|
| u_int32_t snd_pcm_format_silence_32 | ( | snd_pcm_format_t | format | ) |
Return 32 bit expressing silence for a PCM sample format.
| format | Sample format
|
| u_int64_t snd_pcm_format_silence_64 | ( | snd_pcm_format_t | format | ) |
Return 64 bit expressing silence for a PCM sample format.
| format | Sample format
|
| ssize_t snd_pcm_format_size | ( | snd_pcm_format_t | format, | |
| size_t | samples | |||
| ) |
Return bytes needed to store a quantity of PCM sample.
| format | Sample format
|
| int snd_pcm_format_unsigned | ( | snd_pcm_format_t | format | ) |
Return sign info for a PCM sample linear format.
| format | Format
|
| int snd_pcm_format_width | ( | snd_pcm_format_t | format | ) |
Return nominal bits per a PCM sample.
| format | Sample format
|
| ssize_t snd_pcm_frames_to_bytes | ( | snd_pcm_t * | pcm, | |
| snd_pcm_sframes_t | frames | |||
| ) |
Convert frames in bytes for a PCM.
| pcm | PCM handle
|
| ssize_t snd_pcm_samples_to_bytes | ( | snd_pcm_t * | pcm, | |
| long | samples | |||
| ) |
Convert samples in bytes for a PCM.
| pcm | PCM handle
|
1.6.3