summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-09-01 13:52:46 +0100
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-09-17 13:33:20 +0100
commit5b89aac0a2e317f59c3437c7a9d1a9ee51182714 (patch)
tree05a512552c6eac22bb2fb92c35f8a2a35644077c
parent1f3c8e102c026b7bfb163234a8f87cc0b6863246 (diff)
downloadqt4-tools-5b89aac0a2e317f59c3437c7a9d1a9ee51182714.tar.gz
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 5054ae3db6..c8b6ecff2a 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;