summaryrefslogtreecommitdiffstats
path: root/audio/filter/af_sinesuppress.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-13 18:00:51 +0200
committerwm4 <wm4@nowhere>2014-04-13 18:03:01 +0200
commit78128bddda4bcea1f256fc13cc33fa2652ed277c (patch)
tree35bf6596cb8e2d7927618845833c3ee36534f890 /audio/filter/af_sinesuppress.c
parent44f382cf98564c0fe08bdc78579c284362cd6f3c (diff)
downloadmpv-78128bddda4bcea1f256fc13cc33fa2652ed277c.tar.bz2
mpv-78128bddda4bcea1f256fc13cc33fa2652ed277c.tar.xz
Kill all tabs
I hate tabs. This replaces all tabs in all source files with spaces. The only exception is old-makefile. The replacement was made by running the GNU coreutils "expand" command on every file. Since the replacement was automatic, it's possible that some formatting was destroyed (but perhaps only if it was assuming that the end of a tab does not correspond to aligning the end to multiples of 8 spaces).
Diffstat (limited to 'audio/filter/af_sinesuppress.c')
-rw-r--r--audio/filter/af_sinesuppress.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/audio/filter/af_sinesuppress.c b/audio/filter/af_sinesuppress.c
index 9719d46828..6b1d5da50d 100644
--- a/audio/filter/af_sinesuppress.c
+++ b/audio/filter/af_sinesuppress.c
@@ -57,14 +57,14 @@ static int control(struct af_instance* af, int cmd, void* arg)
#if 0
if (((struct mp_audio*)arg)->format == AF_FORMAT_FLOAT)
{
- af->data->format = AF_FORMAT_FLOAT;
- af->data->bps = 4;
- af->play = play_float;
+ af->data->format = AF_FORMAT_FLOAT;
+ af->data->bps = 4;
+ af->play = play_float;
}// else
#endif
{
mp_audio_set_format(af->data, AF_FORMAT_S16);
- af->filter = play_s16;
+ af->filter = play_s16;
}
return af_test_output(af,(struct mp_audio*)arg);
@@ -78,8 +78,8 @@ static int play_s16(struct af_instance* af, struct mp_audio* data, int f)
{
af_sinesuppress_t *s = af->priv;
register int i = 0;
- int16_t *a = (int16_t*)data->planes[0]; // Audio data
- int len = data->samples*data->nch; // Number of samples
+ int16_t *a = (int16_t*)data->planes[0]; // Audio data
+ int len = data->samples*data->nch; // Number of samples
for (i = 0; i < len; i++)
{
@@ -109,8 +109,8 @@ static struct mp_audio* play_float(struct af_instance* af, struct mp_audio* data
{
af_sinesuppress_t *s = af->setup;
register int i = 0;
- float *a = (float*)data->audio; // Audio data
- int len = data->len/4; // Number of samples
+ float *a = (float*)data->audio; // Audio data
+ int len = data->len/4; // Number of samples
float avg, l, r;
for (i = 0; i < len; i+=2)