Descriptor for a specific audio sample format. More...
#include <audiodesc.h>

Public Attributes | |
| int | id |
| Format identifier matching a DataType enum value. | |
| String | name |
| Short format name (e.g. "PCMI_S16LE"). | |
| String | desc |
| Human-readable format description. | |
| size_t | bytesPerSample |
| Number of bytes per single sample. | |
| size_t | bitsPerSample |
| Number of bits per single sample. | |
| bool | isSigned |
| True if the format uses signed integers. | |
| bool | isPlanar |
| True if channels are stored in separate planes. | |
| bool | isBigEndian |
| True if the format uses big-endian byte order. | |
| void(* | samplesToFloat )(float *out, const uint8_t *in, size_t samples) |
| Conversion function from this format to float. | |
| void(* | floatToSamples )(uint8_t *out, const float *in, size_t samples) |
| Conversion function from float to this format. | |
Descriptor for a specific audio sample format.
Contains the format's properties and function pointers for converting between the format's native representation and normalized floats.