From edab3dc0fb04af493592abb31effedec1388b049 Mon Sep 17 00:00:00 2001 From: Sacha Date: Tue, 22 Oct 2013 01:35:03 +1000 Subject: [PATCH] Fix Qt Audio. --- base/QtMain.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/QtMain.h b/base/QtMain.h index 1f64470aef..cf88bb9219 100644 --- a/base/QtMain.h +++ b/base/QtMain.h @@ -192,8 +192,8 @@ public: fmt.setChannelCount(AUDIO_CHANNELS); fmt.setSampleSize(AUDIO_SAMPLESIZE); fmt.setByteOrder(QAudioFormat::LittleEndian); - fmt.setSampleType(QAudioFormat::SignedInt); - mixlen = 2*AUDIO_CHANNELS*AUDIO_SAMPLES; + fmt.setSampleType(QAudioFormat::Float); + mixlen = 4*AUDIO_CHANNELS*AUDIO_SAMPLES; mixbuf = (char*)malloc(mixlen); output = new QAudioOutput(fmt); output->setBufferSize(mixlen);