mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 02:59:49 +01:00
Fix #2 for Qt Audio. Increase samples as it seems to sound much better.
This commit is contained in:
1 parent
edab3dc0fb
commit
dbef0b21a9
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user