Returns 1 when the specified format is native endian, 0 when * not. Returns -1 when endianness does not apply to the * specified format, or endianess is unknown. \since 0.9.16
Returns 1 when the specified format is reverse endian, 0 when * native. Returns -1 when endianness does not apply to the * specified format, or endianess is unknown. \since 0.9.16
Type for usec specifications (unsigned). Always 64 bit.
Sample format
Return the amount of bytes that constitute playback of one second of * audio, with the specified sample spec.
Pretty print a byte size value (i.e.\ "2.5 MiB"). Returns \a s.
Calculate the time it would take to play a buffer of the specified * size with the specified sample type. The return value will always * be rounded down for non-integral return values.
Return non-zero if the channel count is within the supported range. * \since 5.0
Return the size of a frame with the specific sample type
Parse a sample format text. Inverse of pa_sample_format_to_string()
Returns 1 when the specified format is big endian, 0 when * little endian. Returns -1 when endianness does not apply to the * specified format, or endianess is unknown. \since 0.9.16
Returns 1 when the specified format is little endian, 0 when * big endian. Returns -1 when endianness does not apply to the * specified format, or endianess is unknown. \since 0.9.16
Return a descriptive string for the specified sample format. \since 0.8
Return non-zero if the given integer is a valid sample format. \since 5.0
Return non-zero if the rate is within the supported range. \since 5.0
Return the size of a sample with the specific sample type
Similar to pa_sample_size() but take a sample format instead of a * full sample spec. \since 0.9.15
Return non-zero when the two sample type specifications match
Initialize the specified sample spec and return a pointer to * it. The sample spec will have a defined state but * pa_sample_spec_valid() will fail for it. \since 0.9.13
Pretty print a sample type specification to a string. Returns \a s.
Return non-zero when the sample type specification is valid
Calculates the size of a buffer required, for playback duration * of the time specified, with the specified sample type. The * return value will always be rounded down for non-integral * return values. \since 0.9
Maximum required string length for pa_bytes_snprint(). Please note * that this value can change with any release without warning and * without being considered API or ABI breakage. You should not use * this definition anywhere where it might become part of an * ABI. \since 0.9.16
Maximum number of allowed channels
Maximum allowed sample rate
A Shortcut for PA_SAMPLE_FLOAT32NE
32 Bit IEEE floating point, native endian
32 Bit IEEE floating point, reverse endian
Signed 16 Bit PCM, native endian
Signed 16 Bit PCM, reverse endian
Signed 24 Bit PCM packed, native endian. \since 0.9.15
Signed 24 Bit PCM, packed reverse endian. \since 0.9.15
Signed 24 Bit PCM in LSB of 32 Bit words, native endian. \since 0.9.15
Signed 24 Bit PCM, in LSB of 32 Bit words, reverse endian. \since 0.9.15
Signed 32 Bit PCM, native endian
Signed 32 Bit PCM, reverse endian
Maximum required string length for * pa_sample_spec_snprint(). Please note that this value can change * with any release without warning and without being considered API * or ABI breakage. You should not use this definition anywhere where * it might become part of an ABI.
\cond fulldocs
A sample format and attribute specification