summaryrefslogtreecommitdiffstats
path: root/src/multimedia
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-03-11 07:55:00 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-03-11 07:55:00 (GMT)
commitb375d1c9f0aa9441827b4340dca5edc2ff6cb43d (patch)
tree2cc905ccf26c2f8366935b9480e6819a62173662 /src/multimedia
parent870c2d0012f95d1bd43b725104c042e3231d5012 (diff)
parentab3f818d2b2b597e8d45939a559a0ea7e1bfb481 (diff)
downloadQt-b375d1c9f0aa9441827b4340dca5edc2ff6cb43d.zip
Qt-b375d1c9f0aa9441827b4340dca5edc2ff6cb43d.tar.gz
Qt-b375d1c9f0aa9441827b4340dca5edc2ff6cb43d.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-multimedia-staging into 4.6
Diffstat (limited to 'src/multimedia')
-rw-r--r--src/multimedia/audio/qaudioinput_alsa_p.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/multimedia/audio/qaudioinput_alsa_p.cpp b/src/multimedia/audio/qaudioinput_alsa_p.cpp
index 6010f3c..5eb23d0 100644
--- a/src/multimedia/audio/qaudioinput_alsa_p.cpp
+++ b/src/multimedia/audio/qaudioinput_alsa_p.cpp
@@ -588,7 +588,11 @@ int QAudioInputPrivate::notifyInterval() const
qint64 QAudioInputPrivate::processedUSecs() const
{
- return qint64(1000000) * totalTimeValue / settings.frequency();
+ qint64 result = qint64(1000000) * totalTimeValue /
+ (settings.channels()*(settings.sampleSize()/8)) /
+ settings.frequency();
+
+ return result;
}
void QAudioInputPrivate::suspend()