diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-25 02:37:31 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-25 02:37:31 (GMT) |
commit | a4f0b174dd7d6eb837915d9d99b2067b8cb00187 (patch) | |
tree | afaea2e48f83889be1207f0823717fe8cd934272 /src/multimedia | |
parent | b763094c5ec554023e75974cfb01d7e287044d40 (diff) | |
parent | 26824d78f78369857b13a803f8aef58fc68411e9 (diff) | |
download | Qt-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.cpp | 4 |
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 |