1 /* The name speaks for itself this filter is a dummy and will not blow
2 up regardless of what you do with it. */
9 // Initialization and runtime control
10 static int control(struct af_instance_s
* af
, int cmd
, void* arg
)
13 case AF_CONTROL_REINIT
:
14 memcpy(af
->data
,(af_data_t
*)arg
,sizeof(af_data_t
));
15 af_msg(AF_MSG_VERBOSE
,"[dummy] Was reinitialized: %iHz/%ich/%s\n",
16 af
->data
->rate
,af
->data
->nch
,af_fmt2str_short(af
->data
->format
));
23 static void uninit(struct af_instance_s
* af
)
29 // Filter data through filter
30 static af_data_t
* play(struct af_instance_s
* af
, af_data_t
* data
)
32 // Do something necessary to get rid of annoying warning during compile
34 af_msg(AF_MSG_ERROR
,"EEEK: Argument af == NULL in af_dummy.c play().");
38 // Allocate memory and set function pointers
39 static int af_open(af_instance_t
* af
){
44 af
->data
=malloc(sizeof(af_data_t
));
50 // Description of this filter
51 af_info_t af_info_dummy
= {