diff options
author | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-01-07 23:27:09 (GMT) |
---|---|---|
committer | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-01-07 23:27:09 (GMT) |
commit | dbbf451755d34be44f6b7ac2e7c03ffe5528fb1b (patch) | |
tree | e85267fc2c694d7214f501aa6bce64eb642b0af7 | |
parent | 80d4a4945d3273a4b2ce91e34597533f661af320 (diff) | |
download | Qt-dbbf451755d34be44f6b7ac2e7c03ffe5528fb1b.zip Qt-dbbf451755d34be44f6b7ac2e7c03ffe5528fb1b.tar.gz Qt-dbbf451755d34be44f6b7ac2e7c03ffe5528fb1b.tar.bz2 |
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.cpp | 2 |
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 096b7ca..fc612fe 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); } } |