summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2010-01-08 09:27:09 +1000
committerKurt Korbatits <kurt.korbatits@nokia.com>2010-01-08 09:27:09 +1000
commitdbbf451755d34be44f6b7ac2e7c03ffe5528fb1b (patch)
treee85267fc2c694d7214f501aa6bce64eb642b0af7
parent80d4a4945d3273a4b2ce91e34597533f661af320 (diff)
downloadqt4-tools-dbbf451755d34be44f6b7ac2e7c03ffe5528fb1b.tar.gz
QAudioInput loses data on Maemo5/other linux platforms.
The alsa backend was calculating sample timer on resume using buffer_time instead of period_time. Task-number:QTBUG-7044 Reviewed-by:Justin McPherson
-rw-r--r--src/multimedia/audio/qaudioinput_alsa_p.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/audio/qaudioinput_alsa_p.cpp b/src/multimedia/audio/qaudioinput_alsa_p.cpp
index 096b7ca52a..fc612fe2bb 100644
--- a/src/multimedia/audio/qaudioinput_alsa_p.cpp
+++ b/src/multimedia/audio/qaudioinput_alsa_p.cpp
@@ -534,7 +534,7 @@ void QAudioInputPrivate::resume()
resuming = true;
deviceState = QAudio::ActiveState;
int chunks = buffer_size/period_size;
- timer->start(buffer_time*chunks/2000);
+ timer->start(period_time*chunks/2000);
emit stateChanged(deviceState);
}
}