#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
Data Structures | |
struct | audio_format |
Functions | |
static void | audio_format_clear (struct audio_format *af) |
static bool | audio_format_defined (const struct audio_format *af) |
static bool | audio_valid_sample_rate (unsigned sample_rate) |
Checks whether the sample rate is valid. | |
static bool | audio_valid_sample_format (unsigned bits) |
Checks whether the sample format is valid. | |
static bool | audio_valid_channel_count (unsigned channels) |
Checks whether the number of channels is valid. | |
static bool | audio_format_valid (const struct audio_format *af) |
Returns false if the format is not valid for playback with MPD. | |
static bool | audio_format_equals (const struct audio_format *a, const struct audio_format *b) |
static unsigned | audio_format_sample_size (const struct audio_format *af) |
Returns the size of each (mono) sample in bytes. | |
static unsigned | audio_format_frame_size (const struct audio_format *af) |
static double | audio_format_time_to_size (const struct audio_format *af) |
static double | audioFormatSizeToTime (const struct audio_format *af) |
static void audio_format_clear | ( | struct audio_format * | af | ) | [inline, static] |
Definition at line 32 of file audio_format.h.
static bool audio_format_defined | ( | const struct audio_format * | af | ) | [inline, static] |
Definition at line 39 of file audio_format.h.
static bool audio_format_equals | ( | const struct audio_format * | a, | |
const struct audio_format * | b | |||
) | [inline, static] |
Definition at line 86 of file audio_format.h.
static unsigned audio_format_frame_size | ( | const struct audio_format * | af | ) | [inline, static] |
Definition at line 108 of file audio_format.h.
static unsigned audio_format_sample_size | ( | const struct audio_format * | af | ) | [inline, static] |
static double audio_format_time_to_size | ( | const struct audio_format * | af | ) | [inline, static] |
Definition at line 113 of file audio_format.h.
static bool audio_format_valid | ( | const struct audio_format * | af | ) | [inline, static] |
Returns false if the format is not valid for playback with MPD.
This function performs some basic validity checks.
Definition at line 79 of file audio_format.h.
static bool audio_valid_channel_count | ( | unsigned | channels | ) | [inline, static] |
static bool audio_valid_sample_format | ( | unsigned | bits | ) | [inline, static] |
Checks whether the sample format is valid.
bits | the number of significant bits per sample |
Definition at line 61 of file audio_format.h.
static bool audio_valid_sample_rate | ( | unsigned | sample_rate | ) | [inline, static] |
Checks whether the sample rate is valid.
sample_rate | the sample rate in Hz |
Definition at line 50 of file audio_format.h.
static double audioFormatSizeToTime | ( | const struct audio_format * | af | ) | [inline, static] |
Definition at line 118 of file audio_format.h.