From e5a1efe44060df46288a9e418750661235fd1fc9 Mon Sep 17 00:00:00 2001 From: okertanov Date: Fri, 15 Apr 2011 14:12:32 +0300 Subject: [PATCH] fix O2 optimization distorsions --- Makefile | 2 +- hairtunes.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c1ae84a5..27e5be0f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PKGFLAGS:=$(shell pkg-config --cflags --libs openssl ao) -CFLAGS:=-O0 +CFLAGS:=-O2 LDFLAGS:=-lm -lpthread PAUFLAGS:=-lportaudio diff --git a/hairtunes.c b/hairtunes.c index d637d653..60817f95 100644 --- a/hairtunes.c +++ b/hairtunes.c @@ -628,6 +628,8 @@ int stuff_buffer(double playback_rate, short *inptr, short *outptr) { *outptr++ = dithered_vol(*inptr++); } } + + return stuffsamp; } void *audio_thread_func(void *arg) {