From 1a2be8a4fb31c113eb327ed6b586c8a8f237b759 Mon Sep 17 00:00:00 2001 From: okertanov Date: Fri, 15 Apr 2011 19:12:32 +0800 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 546bd900..1b119446 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) {