comparison libaf/af_karaoke.c @ 19199:ff3ed01e9043

fix wrong and unrelated change done in r19199
author reynaldo
date Thu, 27 Jul 2006 18:35:40 +0000
parents 5949a654e2d4
children fd6f824ef894
comparison
equal deleted inserted replaced
19198:b137cea2650e 19199:ff3ed01e9043
21 switch(cmd){ 21 switch(cmd){
22 case AF_CONTROL_REINIT: 22 case AF_CONTROL_REINIT:
23 af->data->rate = ((af_data_t*)arg)->rate; 23 af->data->rate = ((af_data_t*)arg)->rate;
24 af->data->nch = ((af_data_t*)arg)->nch; 24 af->data->nch = ((af_data_t*)arg)->nch;
25 af->data->format= AF_FORMAT_FLOAT_NE; 25 af->data->format= AF_FORMAT_FLOAT_NE;
26 af->data->bps = 8; 26 af->data->bps = 4;
27 return af_test_output(af,(af_data_t*)arg); 27 return af_test_output(af,(af_data_t*)arg);
28 } 28 }
29 return AF_UNKNOWN; 29 return AF_UNKNOWN;
30 } 30 }
31 31
39 // Filter data through filter 39 // Filter data through filter
40 static af_data_t* play(struct af_instance_s* af, af_data_t* data) 40 static af_data_t* play(struct af_instance_s* af, af_data_t* data)
41 { 41 {
42 af_data_t* c = data; // Current working data 42 af_data_t* c = data; // Current working data
43 float* a = c->audio; // Audio data 43 float* a = c->audio; // Audio data
44 int len = c->len/8; // Number of samples in current audio block 44 int len = c->len/4; // Number of samples in current audio block
45 int nch = c->nch; // Number of channels 45 int nch = c->nch; // Number of channels
46 register int i; 46 register int i;
47 47
48 /* 48 /*
49 FIXME1 add a low band pass filter to avoid suppressing 49 FIXME1 add a low band pass filter to avoid suppressing