summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-06-16 06:44:18 (GMT)
committerSamuli Piippo <samuli.piippo@digia.com>2011-06-09 10:06:14 (GMT)
commitb4a5dd36a7d72affcdfc11a63911c397fd4de4fe (patch)
tree3ac046c786dfeed88d085fd447fbc0c4aa3c893e /src
parente4aa6296c20bbcfb793f1f7e538aca40bb47d2d5 (diff)
downloadQt-b4a5dd36a7d72affcdfc11a63911c397fd4de4fe.zip
Qt-b4a5dd36a7d72affcdfc11a63911c397fd4de4fe.tar.gz
Qt-b4a5dd36a7d72affcdfc11a63911c397fd4de4fe.tar.bz2
Audio (osx); In pull mode emit readyRead() for each period received.
Task-number: QTBUG-10009 Reviewed-by:Dmytro Poplavskiy (cherry picked from commit 4f79cbb2b7923ff7f7cbc77dc6820d12f594311d)
Diffstat (limited to 'src')
-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 e78129a..c027c68 100644
--- a/src/multimedia/audio/qaudioinput_mac_p.cpp
+++ b/src/multimedia/audio/qaudioinput_mac_p.cpp
@@ -259,7 +259,7 @@ public:
UInt32 inBusNumber,
UInt32 inNumberFrames)
{
- const bool wasEmpty = m_buffer->used() == 0;
+ const bool pullMode = m_device == 0;
OSStatus err;
qint64 framesRendered = 0;
@@ -330,7 +330,7 @@ public:
framesRendered = copied / m_outputFormat.mBytesPerFrame;
}
- if (wasEmpty && framesRendered > 0)
+ if (pullMode && framesRendered > 0)
emit readyRead();
return framesRendered;