aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs
diff options
context:
space:
mode:
Diffstat (limited to 'src/audioOutputs')
-rw-r--r--src/audioOutputs/audioOutput_jack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audioOutputs/audioOutput_jack.c b/src/audioOutputs/audioOutput_jack.c
index 04ad436f8..d9670b27b 100644
--- a/src/audioOutputs/audioOutput_jack.c
+++ b/src/audioOutputs/audioOutput_jack.c
@@ -389,8 +389,9 @@ static int jack_playAudio(void *data,
size_t space;
size_t i;
const short *buffer = (const short *) buff;
+ static const size_t frame_size = sizeof(*buffer) * 2;
jack_default_audio_sample_t sample;
- size_t samples = size/4;
+ size_t samples = size / frame_size;
/*DEBUG("jack_playAudio: (pid=%d)!\n", getpid());*/