summaryrefslogtreecommitdiffstats
path: root/src/multimedia
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2010-04-09 05:12:43 (GMT)
committerKurt Korbatits <kurt.korbatits@nokia.com>2010-04-09 05:12:43 (GMT)
commit544bbfadc0703597b7084213261053ca0e2facf6 (patch)
tree3c362ab47af7b19be6351315b8e34e538b23c319 /src/multimedia
parenta5b4b54820b9266a2916981002e9be66fd0a7710 (diff)
downloadQt-544bbfadc0703597b7084213261053ca0e2facf6.zip
Qt-544bbfadc0703597b7084213261053ca0e2facf6.tar.gz
Qt-544bbfadc0703597b7084213261053ca0e2facf6.tar.bz2
Corruption in data captured by QAudioInput
Increased default buffer size and period size for windows. 11025monoS16LE was choppy, needed bigger periods. Task-number:QTBUG-9101 Reviewed-by:Derick Hawcroft
Diffstat (limited to 'src/multimedia')
-rw-r--r--src/multimedia/audio/qaudioinput_win32_p.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multimedia/audio/qaudioinput_win32_p.cpp b/src/multimedia/audio/qaudioinput_win32_p.cpp
index bf13c43..df469d7 100644
--- a/src/multimedia/audio/qaudioinput_win32_p.cpp
+++ b/src/multimedia/audio/qaudioinput_win32_p.cpp
@@ -224,8 +224,8 @@ bool QAudioInputPrivate::open()
#endif
header = 0;
if(buffer_size == 0) {
- // Default buffer size, 100ms, default period size is 20ms
- buffer_size = settings.frequency()*settings.channels()*(settings.sampleSize()/8)*0.1;
+ // Default buffer size, 200ms, default period size is 40ms
+ buffer_size = settings.frequency()*settings.channels()*(settings.sampleSize()/8)*0.2;
period_size = buffer_size/5;
} else {
period_size = buffer_size/5;