Fix #2 for Qt Audio. Increase samples as it seems to sound much better.

This commit is contained in:
Sacha committed 2013-10-22 03:58:56 +10:00
1 parent edab3dc0fb
commit dbef0b21a9
1 file changed
+2 -2
+2 -2
View File
@@ -179,7 +179,7 @@ private:
// Audio
#define AUDIO_FREQ 44100
#define AUDIO_CHANNELS 2
#define AUDIO_SAMPLES 1024
#define AUDIO_SAMPLES 2048
#define AUDIO_SAMPLESIZE 16
class MainAudio: public QObject
{
@@ -192,7 +192,7 @@ public:
fmt.setChannelCount(AUDIO_CHANNELS);
fmt.setSampleSize(AUDIO_SAMPLESIZE);
fmt.setByteOrder(QAudioFormat::LittleEndian);
fmt.setSampleType(QAudioFormat::Float);
fmt.setSampleType(QAudioFormat::SignedInt);
mixlen = 4*AUDIO_CHANNELS*AUDIO_SAMPLES;
mixbuf = (char*)malloc(mixlen);
output = new QAudioOutput(fmt);