diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-06 11:31:18 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-06 11:31:18 +0000 |
commit | 1dd64224c45a5f148a39d523582ab8e532a46a28 (patch) | |
tree | 0a9c4b0b837212a376bd2f8f3f403df25cad0c28 /libaf/af_resample.c | |
parent | 175cfc985c24c8599214f716a521fe9c75f54a94 (diff) | |
download | mpv-1dd64224c45a5f148a39d523582ab8e532a46a28.tar.bz2 mpv-1dd64224c45a5f148a39d523582ab8e532a46a28.tar.xz |
Comment typo fixes for af_resample
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28844 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf/af_resample.c')
-rw-r--r-- | libaf/af_resample.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libaf/af_resample.c b/libaf/af_resample.c index 2536c0706d..ea628c7ae8 100644 --- a/libaf/af_resample.c +++ b/libaf/af_resample.c @@ -33,7 +33,7 @@ Valid definitions are L8 and L16, where the number denotes the length of the filter. This definition affects the computational complexity (see play()), the performance (see filter.h) and the - memory usage. The filterlength is choosen to 8 if the machine is + memory usage. The filter length is chosen to 8 if the machine is slow and to 16 if the machine is fast and has MMX. */ @@ -175,11 +175,11 @@ static int control(struct af_instance_s* af, int cmd, void* arg) switch(cmd){ case AF_CONTROL_REINIT:{ af_resample_t* s = (af_resample_t*)af->setup; - af_data_t* n = (af_data_t*)arg; // New configureation + af_data_t* n = (af_data_t*)arg; // New configuration int i,d = 0; int rv = AF_OK; - // Free space for circular bufers + // Free space for circular buffers if(s->xq){ for(i=1;i<af->data->nch;i++) if(s->xq[i]) @@ -216,13 +216,13 @@ static int control(struct af_instance_s* af, int cmd, void* arg) d*=m; } - // Create space for circular bufers + // Create space for circular buffers s->xq = malloc(n->nch*sizeof(void*)); for(i=0;i<n->nch;i++) s->xq[i] = malloc(2*L*af->data->bps); s->xi = 0; - // Check if the the design needs to be redone + // Check if the design needs to be redone if(s->up != af->data->rate/d || s->dn != n->rate/d){ float* w; float* wt; @@ -233,9 +233,9 @@ static int control(struct af_instance_s* af, int cmd, void* arg) s->wi = 0; s->i = 0; - // Calculate cuttof frequency for filter + // Calculate cutoff frequency for filter fc = 1/(float)(max(s->up,s->dn)); - // Allocate space for polyphase filter bank and protptype filter + // Allocate space for polyphase filter bank and prototype filter w = malloc(sizeof(float) * s->up *L); if(NULL != s->w) free(s->w); |