![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <memory>#include <string_view>#include "debug.h"#include "module.h"#include "audio/audio_filter.h"#include "audio/types.h"#include "lib_common.h"#include "utils/ring_buffer.h"#include "utils/misc.h"#include "utils/string_view_utils.hpp"
Go to the source code of this file.
Classes | |
| struct | state_delay |
Functions | |
| static af_result_code | configure (void *state, int in_bps, int in_ch_count, int in_sample_rate) |
| static void | done (void *state) |
| static af_result_code | filter (void *state, struct audio_frame **frame) |
| static void | get_configured (void *state, int *bps, int *ch_count, int *sample_rate) |
| static af_result_code | init (struct module *parent, const char *cfg, void **state) |
| static af_result_code | parse_cfg (state_delay *s, std::string_view cfg) |
| REGISTER_MODULE (delay, &audio_filter_delay, LIBRARY_CLASS_AUDIO_FILTER, AUDIO_FILTER_ABI_VERSION) | |
| static void | set_delay_size (state_delay *s, int size) |
| static void | usage () |
Variables | |
| static const struct audio_filter_info | audio_filter_delay |
Definition in file delay.cpp.
|
static |
Definition at line 125 of file delay.cpp.
References AF_OK, state_delay::bps, set_delay_size(), and state.
Referenced by filter().

|
static |
Definition at line 158 of file delay.cpp.
References AF_MISCONFIGURED, AF_OK, check_message(), configure(), frame, free_message(), msg, new_response(), parse_cfg(), RESPONSE_BAD_REQUEST, RESPONSE_OK, ring_buffer_read(), ring_buffer_write(), set_delay_size(), and state.

|
static |
Definition at line 148 of file delay.cpp.
References state_delay::bps, sample_rate, and state.
|
static |
|
static |
Definition at line 84 of file delay.cpp.
References AF_FAILURE, AF_HELP_SHOWN, AF_OK, state_delay::frame_mode, LOG_LEVEL_ERROR, log_msg(), parse_num(), state_delay::req_delay, tokenize(), and usage().
Referenced by filter(), and init().

| REGISTER_MODULE | ( | delay | , |
| & | audio_filter_delay, | ||
| LIBRARY_CLASS_AUDIO_FILTER | , | ||
| AUDIO_FILTER_ABI_VERSION | ) |
|
static |
Definition at line 112 of file delay.cpp.
References state_delay::delay_size, state_delay::ring, ring_buffer_init(), and ring_fill().
Referenced by configure(), and filter().

|
static |
Definition at line 78 of file delay.cpp.
Referenced by parse_cfg().
|
static |
Definition at line 209 of file delay.cpp.