diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-24 14:37:29 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-24 14:37:29 (GMT) |
commit | c0fc8af2d609148fccc96736718a31ff0bdb352c (patch) | |
tree | 0d03fc8f41a94c58477ecd77f96a3e47dc28c0fa /src | |
parent | fa2a64ee5ec1d9e65cb0c4b984c27b56fdae0120 (diff) | |
parent | 73ce2c6d3aaea50ebab95561fdccbf35ed4c00d8 (diff) | |
download | Qt-c0fc8af2d609148fccc96736718a31ff0bdb352c.zip Qt-c0fc8af2d609148fccc96736718a31ff0bdb352c.tar.gz Qt-c0fc8af2d609148fccc96736718a31ff0bdb352c.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')
-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 |