summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2010-01-07 23:27:09 (GMT)
committerKurt Korbatits <kurt.korbatits@nokia.com>2010-01-07 23:27:09 (GMT)
commitdbbf451755d34be44f6b7ac2e7c03ffe5528fb1b (patch)
treee85267fc2c694d7214f501aa6bce64eb642b0af7 /src
parent80d4a4945d3273a4b2ce91e34597533f661af320 (diff)
downloadQt-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
Diffstat (limited to 'src')
-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 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);
}
}