summaryrefslogtreecommitdiffstats
path: root/src/multimedia
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-06-16 06:44:18 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-06-16 06:46:33 (GMT)
commit4f79cbb2b7923ff7f7cbc77dc6820d12f594311d (patch)
treebd3fdb636a1e183f583c837d3e0c973b6154b3ed /src/multimedia
parentc7ae45fd1357712e1bad7dd30c3958a5866d6ac4 (diff)
downloadQt-4f79cbb2b7923ff7f7cbc77dc6820d12f594311d.zip
Qt-4f79cbb2b7923ff7f7cbc77dc6820d12f594311d.tar.gz
Qt-4f79cbb2b7923ff7f7cbc77dc6820d12f594311d.tar.bz2
Audio (osx); In pull mode emit readyRead() for each period received.
Task-number: QTBUG-10009 Reviewed-by:Dmytro Poplavskiy
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 cb65f6e..b99fe11 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;