Fix Qt Audio.

This commit is contained in:
Sacha committed 2013-10-22 01:35:03 +10:00
1 parent 887d140d55
commit edab3dc0fb
1 file changed
+2 -2
+2 -2
View File
@@ -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);