![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <alsa/asoundlib.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "debug.h"#include "utils/color_out.h"#include "types.h"

Go to the source code of this file.
Functions | |
| static const char * | alsa_get_pcm_state_name (snd_pcm_state_t state) __attribute__((unused)) |
| static void | audio_alsa_list_devices (void) |
| static void | audio_alsa_probe (struct device_info **available_devices, int *count, const char **whitelist, size_t whitelist_size) |
| static int | get_rate_near (snd_pcm_t *handle, snd_pcm_hw_params_t *params, unsigned int approx_val) |
| static void | print_alsa_device_info (snd_pcm_t *handle, const char *module_name) |
Variables | |
| static const snd_pcm_format_t | bps_to_snd_fmts [] |
Definition in file alsa_common.h.
|
static |
Definition at line 208 of file alsa_common.h.
References state.
Referenced by audio_play_alsa_put_frame(), and audio_play_alsa_reconfigure().
|
inlinestatic |
Definition at line 114 of file alsa_common.h.
References audio_alsa_probe(), color_printf(), count, device_info::dev, name, TERM_FG_RED, and TERM_FG_RESET.
Referenced by audio_cap_alsa_help(), and audio_play_alsa_help().

|
inlinestatic |
Definition at line 50 of file alsa_common.h.
Referenced by audio_alsa_list_devices(), audio_cap_alsa_probe(), and audio_play_alsa_probe().
|
static |
Finds equal or nearest higher sample rate that device supports. If none exist, pick highest lower value.
Definition at line 144 of file alsa_common.h.
Referenced by audio_cap_alsa_init(), and audio_play_alsa_query_format().
|
static |
Definition at line 198 of file alsa_common.h.
References LOG_LEVEL_NOTICE, and log_msg().
Referenced by audio_cap_alsa_init(), and audio_play_alsa_init().

|
static |
Definition at line 130 of file alsa_common.h.
Referenced by audio_cap_alsa_init(), audio_play_alsa_query_format(), and audio_play_alsa_reconfigure().