63 const char *dev,
const char *
name)
66 strncpy((*available_devices)[0].
dev,
dev,
sizeof (*available_devices)[0].
dev - 1);
67 strncpy((*available_devices)[0].
name,
name,
sizeof (*available_devices)[0].
name - 1);
68 snprintf((*available_devices)[0].
extra,
sizeof (*available_devices)[0].
extra,
"\"isEmbeddedAudio\":\"t\"");
92 if(strcmp(driver_name,
"embedded") == 0) {
93 printf(
"\tembedded : SDI audio (if available)\n");
94 }
else if(strcmp(driver_name,
"AESEBU") == 0) {
95 printf(
"\tAESEBU : separately connected AES/EBU cabling to grabbing card (if available)\n");
96 }
else if(strcmp(driver_name,
"analog") == 0) {
97 printf(
"\tanalog : separately connected audio input (if available)\n");
103 if (strcmp(cfg,
"help") == 0) {
104 printf(
"Available embedded devices:\n");
struct video_frame * frame
int void(** deleter)(void *))
#define AUDIO_PLAYBACK_CTL_QUERY_FORMAT
#define AUDIO_PLAYBACK_ABI_VERSION
void log_msg(int level, const char *format,...)
#define LOG_LEVEL_WARNING
less severe errors
static int64_t get_property(int dri, drmModeObjectPropertiesPtr props, std::string_view name)
@ DISPLAY_PROPERTY_AUDIO_FORMAT
@ LIBRARY_CLASS_AUDIO_PLAYBACK
#define REGISTER_MODULE(name, info, lclass, abi)
Registers module to global modules' registry.
static const struct audio_playback_info aplay_sdi_info_aesebu
static bool audio_play_sdi_query_format(struct state_sdi_playback *s, void *data, size_t *len)
static void audio_play_sdi_probe_embedded(struct device_info **available_devices, int *count, void(**deleter)(void *))
static void audio_play_sdi_probe_common(struct device_info **available_devices, int *count, const char *dev, const char *name)
static void audio_play_sdi_help(const char *driver_name)
static void audio_play_sdi_probe_aesebu(struct device_info **available_devices, int *count, void(**deleter)(void *))
static void * audio_play_sdi_init(const char *cfg)
static bool audio_play_sdi_ctl(void *state, int request, void *data, size_t *len)
static bool audio_play_sdi_reconfigure(void *state, struct audio_desc desc)
static void audio_play_sdi_put_frame(void *state, const struct audio_frame *frame)
static void audio_play_sdi_probe_analog(struct device_info **available_devices, int *count, void(**deleter)(void *))
static const struct audio_playback_info aplay_sdi_info_embedded
static void audio_play_sdi_done(void *s)
void sdi_register_display_callbacks(void *state, void *udata, void(*putf)(void *, const struct audio_frame *), bool(*reconfigure)(void *, int, int, int), bool(*get_property)(void *, int, void *, size_t *))
static const struct audio_playback_info aplay_sdi_info_analog
struct used to comunicate with audio capture/playback device
bool(* get_property_callback)(void *, int, void *, size_t *)
bool(* reconfigure_callback)(void *state, int quant_samples, int channels, int sample_rate)
void(* put_callback)(void *, const struct audio_frame *)
static void reconfigure(struct state_vidcap_syphon *s, struct video_desc desc)