62 "silence")
" allows muting individual channels.\n\n");
66 color_printf(
"If no index is given, all channels will be muted.\n");
73 if (strcmp(cfg,
"help") == 0) {
79 const size_t len = strlen(cfg) + 1;
85 while ((
item = strtok_r(tmp,
",", &end_ptr)) != NULL) {
88 strtol(
item, NULL, 10);
128 memset((*frame)->data, 0, (*frame)->data_len);
139 for (
int j = 0; j < (*frame)->data_len; j += frame_size) {
140 memset(ptr, 0, (*frame)->bps);
struct video_frame * frame
This file contains definition of some common audio types.
#define AUDIO_FILTER_ABI_VERSION
int color_printf(const char *format,...)
@ LIBRARY_CLASS_AUDIO_FILTER
#define REGISTER_MODULE(name, info, lclass, abi)
Registers module to global modules' registry.
static void get_configured_desc(void *state, int *bps, int *ch_count, int *sample_rate)
static enum af_result_code configure(void *state, int in_bps, int in_ch_count, int in_sample_rate)
static enum af_result_code init(struct module *parent, const char *cfg, void **state)
static const struct audio_filter_info audio_filter_silence
static enum af_result_code filter(void *state, struct audio_frame **frame)
static void done(void *state)
struct used to comunicate with audio capture/playback device
size_t silence_channels[MAX_CHANNELS]
int silence_channels_count