summaryrefslogtreecommitdiffstats
path: root/libaf/af_pan.c
diff options
context:
space:
mode:
Diffstat (limited to 'libaf/af_pan.c')
-rw-r--r--libaf/af_pan.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libaf/af_pan.c b/libaf/af_pan.c
index 2c1a41dd87..9a3e520446 100644
--- a/libaf/af_pan.c
+++ b/libaf/af_pan.c
@@ -37,7 +37,7 @@ typedef struct af_pan_s
// Initialization and runtime control
static int control(struct af_instance_s* af, int cmd, void* arg)
{
- af_pan_t* s = af->setup;
+ af_pan_t* s = af->setup;
switch(cmd){
case AF_CONTROL_REINIT:
@@ -50,7 +50,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
af->data->nch = s->nch ? s->nch: ((af_data_t*)arg)->nch;
af->mul = (double)af->data->nch / ((af_data_t*)arg)->nch;
- if((af->data->format != ((af_data_t*)arg)->format) ||
+ if((af->data->format != ((af_data_t*)arg)->format) ||
(af->data->bps != ((af_data_t*)arg)->bps)){
((af_data_t*)arg)->format = af->data->format;
((af_data_t*)arg)->bps = af->data->bps;
@@ -72,12 +72,12 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
j = 0; k = 0;
while((*cp == ':') && (k < AF_NCH)){
sscanf(cp, ":%f%n" , &s->level[j][k], &n);
- mp_msg(MSGT_AFILTER, MSGL_V, "[pan] Pan level from channel %i to"
+ mp_msg(MSGT_AFILTER, MSGL_V, "[pan] Pan level from channel %i to"
" channel %i = %f\n",k,j,s->level[j][k]);
cp =&cp[n];
j++;
if(j>=nch){
- j = 0;
+ j = 0;
k++;
}
}
@@ -108,7 +108,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
// Sanity check
if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > AF_NCH){
- mp_msg(MSGT_AFILTER, MSGL_ERR, "[pan] The number of output channels must be"
+ mp_msg(MSGT_AFILTER, MSGL_ERR, "[pan] The number of output channels must be"
" between 1 and %i. Current value is %i\n",AF_NCH,((int*)arg)[0]);
return AF_ERROR;
}
@@ -138,7 +138,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)
@@ -165,7 +165,7 @@ static af_data_t* play(struct af_instance_s* af, af_data_t* data)
return NULL;
out = l->audio;
- // Execute panning
+ // Execute panning
// FIXME: Too slow
while(in < end){
for(j=0;j<ncho;j++){