#include <memory>
#include <string_view>
#include "debug.h"
#include "module.h"
#include "audio/audio_filter.h"
#include "audio/types.h"
#include "audio/utils.h"
#include "lib_common.h"
Go to the source code of this file.
|
| 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) |
| |
| | REGISTER_HIDDEN_MODULE (discard, &audio_filter_discard, LIBRARY_CLASS_AUDIO_FILTER, AUDIO_FILTER_ABI_VERSION) |
| |
| static void | usage () |
| |
◆ configure()
| static af_result_code configure |
( |
void * | state, |
|
|
int | in_bps, |
|
|
int | in_ch_count, |
|
|
int | in_sample_rate ) |
|
static |
◆ done()
| static void done |
( |
void * | state | ) |
|
|
static |
◆ filter()
Definition at line 111 of file discard.cpp.
111 {
113
115
116 if(f->bps != s->bps || f->ch_count != s->ch_count){
119 }
120 }
121
123
125}
struct video_frame * frame
static af_result_code configure(void *state, int in_bps, int in_ch_count, int in_sample_rate)
References AF_MISCONFIGURED, AF_OK, configure(), frame, and state.
◆ get_configured()
| static void get_configured |
( |
void * | state, |
|
|
int * | bps, |
|
|
int * | ch_count, |
|
|
int * | sample_rate ) |
|
static |
◆ init()
◆ REGISTER_HIDDEN_MODULE()
◆ usage()
| static void usage |
( |
void | | ) |
|
|
static |
Definition at line 66 of file discard.cpp.
66 {
67 printf("discard:\n");
68 printf("Discards all audio frames\n");
69}
Referenced by init().
◆ audio_filter_discard
Initial value:= {
.name = "discard",
}
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 void done(void *state)
Definition at line 127 of file discard.cpp.
127 {
128 .name = "discard",
135};