aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:16 +0200
committerEric Wong <normalperson@yhbt.net>2008-08-31 00:45:58 -0700
commite4db015707016978b6a478e06a908fb1a1577601 (patch)
tree20d47dd8f224007ff4f76c7db922b165acdcd83e
parent070b952ae48da684461a3efa039be3b081f90f4d (diff)
downloadmpd-e4db015707016978b6a478e06a908fb1a1577601.tar.gz
mpd-e4db015707016978b6a478e06a908fb1a1577601.tar.xz
mpd-e4db015707016978b6a478e06a908fb1a1577601.zip
jack: made "sample_size" static const
sample_size is a variable which is computed at compile time. Declare it "static const", so the compiler can optimize it away.
-rw-r--r--src/audioOutputs/audioOutput_jack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audioOutputs/audioOutput_jack.c b/src/audioOutputs/audioOutput_jack.c
index 955eccd0b..8818bb739 100644
--- a/src/audioOutputs/audioOutput_jack.c
+++ b/src/audioOutputs/audioOutput_jack.c
@@ -27,7 +27,7 @@
#include <jack/types.h>
#include <jack/ringbuffer.h>
-size_t sample_size = sizeof(jack_default_audio_sample_t);
+static const size_t sample_size = sizeof(jack_default_audio_sample_t);
typedef struct _JackData {
/* configuration */