aboutsummaryrefslogtreecommitdiffstats
path: root/src/normalize.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/normalize.c')
-rw-r--r--src/normalize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/normalize.c b/src/normalize.c
index f9201df64..1c8173def 100644
--- a/src/normalize.c
+++ b/src/normalize.c
@@ -47,7 +47,8 @@ void finishNormalization(void)
void normalizeData(void *buffer, int bufferSize,
const struct audio_format *format)
{
- if ((format->bits != 16) || (format->channels != 2)) return;
+ if (format->format != SAMPLE_FORMAT_S16 || format->channels != 2)
+ return;
Compressor_Process_int16(compressor, buffer, bufferSize / 2);
}