diff options
author | Justin McPherson <justin.mcpherson@nokia.com> | 2010-06-16 06:44:18 (GMT) |
---|---|---|
committer | Justin McPherson <justin.mcpherson@nokia.com> | 2010-06-16 06:46:33 (GMT) |
commit | 4f79cbb2b7923ff7f7cbc77dc6820d12f594311d (patch) | |
tree | bd3fdb636a1e183f583c837d3e0c973b6154b3ed /src | |
parent | c7ae45fd1357712e1bad7dd30c3958a5866d6ac4 (diff) | |
download | Qt-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')
-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 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; |