summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-09-01 12:52:46 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-09-17 12:33:20 (GMT)
commit5b89aac0a2e317f59c3437c7a9d1a9ee51182714 (patch)
tree05a512552c6eac22bb2fb92c35f8a2a35644077c
parent1f3c8e102c026b7bfb163234a8f87cc0b6863246 (diff)
downloadQt-5b89aac0a2e317f59c3437c7a9d1a9ee51182714.zip
Qt-5b89aac0a2e317f59c3437c7a9d1a9ee51182714.tar.gz
Qt-5b89aac0a2e317f59c3437c7a9d1a9ee51182714.tar.bz2
Suppress overflow errors raised by Symbian DevSound during playback
When QAudioOutput::suspend() and QAudioOutput::resume() are called repeatedly, with a short delay between each call, DevSound occasionally raises a KErrOverflow error. The backend previously translated this into QAudio::IOError, causing the object to transition into the QAudio::Stopped state. This error can be safely ignored, with playback resuming as soon as more audio data is provided to DevSound. This patch therefore suppresses the error. Task-number: QTBUG-13059 Reviewed-by: Derick Hawcroft
-rw-r--r--src/multimedia/audio/qaudiooutput_symbian_p.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/multimedia/audio/qaudiooutput_symbian_p.cpp b/src/multimedia/audio/qaudiooutput_symbian_p.cpp
index 5054ae3..c8b6ecf 100644
--- a/src/multimedia/audio/qaudiooutput_symbian_p.cpp
+++ b/src/multimedia/audio/qaudiooutput_symbian_p.cpp
@@ -371,6 +371,9 @@ void QAudioOutputPrivate::devsoundPlayError(int err)
else
setState(SymbianAudio::IdleState);
break;
+ case KErrOverflow:
+ // Silently consume this error when in playback mode
+ break;
default:
setError(QAudio::IOError);
break;