diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /libaf/af_karaoke.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'libaf/af_karaoke.c')
-rw-r--r-- | libaf/af_karaoke.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libaf/af_karaoke.c b/libaf/af_karaoke.c index 5239c74721..e0f0d42471 100644 --- a/libaf/af_karaoke.c +++ b/libaf/af_karaoke.c @@ -23,7 +23,7 @@ #include <stdio.h> #include <stdlib.h> -#include <string.h> +#include <string.h> #include "af.h" @@ -43,7 +43,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg) return AF_UNKNOWN; } -// Deallocate memory +// Deallocate memory static void uninit(struct af_instance_s* af) { if(af->data) @@ -55,22 +55,22 @@ static af_data_t* play(struct af_instance_s* af, af_data_t* data) { af_data_t* c = data; // Current working data float* a = c->audio; // Audio data - int len = c->len/4; // Number of samples in current audio block + int len = c->len/4; // Number of samples in current audio block int nch = c->nch; // Number of channels register int i; - /* - FIXME1 add a low band pass filter to avoid suppressing + /* + FIXME1 add a low band pass filter to avoid suppressing centered bass/drums FIXME2 better calculated* attenuation factor */ - + for(i=0;i<len;i+=nch) { a[i] = (a[i] - a[i+1]) * 0.7; a[i+1]=a[i]; } - + return c; } @@ -84,7 +84,7 @@ static int af_open(af_instance_t* af){ if(af->data == NULL) return AF_ERROR; - + return AF_OK; } |