summaryrefslogtreecommitdiffstats
path: root/src/multimedia
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-03-25 02:37:31 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-03-25 02:37:31 (GMT)
commita4f0b174dd7d6eb837915d9d99b2067b8cb00187 (patch)
treeafaea2e48f83889be1207f0823717fe8cd934272 /src/multimedia
parentb763094c5ec554023e75974cfb01d7e287044d40 (diff)
parent26824d78f78369857b13a803f8aef58fc68411e9 (diff)
downloadQt-a4f0b174dd7d6eb837915d9d99b2067b8cb00187.zip
Qt-a4f0b174dd7d6eb837915d9d99b2067b8cb00187.tar.gz
Qt-a4f0b174dd7d6eb837915d9d99b2067b8cb00187.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging: Calculate period size correctly.
Diffstat (limited to 'src/multimedia')
-rw-r--r--src/multimedia/audio/qaudioinput_mac_p.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multimedia/audio/qaudioinput_mac_p.cpp b/src/multimedia/audio/qaudioinput_mac_p.cpp
index 4b37b18..cb65f6e 100644
--- a/src/multimedia/audio/qaudioinput_mac_p.cpp
+++ b/src/multimedia/audio/qaudioinput_mac_p.cpp
@@ -670,8 +670,8 @@ bool QAudioInputPrivate::open()
}
// Allocate buffer
- periodSizeBytes = (numberOfFrames * streamFormat.mSampleRate / deviceFormat.mSampleRate) *
- streamFormat.mBytesPerFrame;
+ periodSizeBytes = numberOfFrames * streamFormat.mBytesPerFrame;
+
if (internalBufferSize < periodSizeBytes * 2)
internalBufferSize = periodSizeBytes * 2;
else