diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-09-01 12:52:46 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-09-17 13:21:04 (GMT) |
commit | 4b0435b0dc2287756221e35f2ebe9493aad8306d (patch) | |
tree | 9b387a6ad3c9a025d4cc9c2ca4bea7110353d3dc /src/multimedia | |
parent | 98b335dadef433e383d3a25dbdadbb5efe7f8429 (diff) | |
download | Qt-4b0435b0dc2287756221e35f2ebe9493aad8306d.zip Qt-4b0435b0dc2287756221e35f2ebe9493aad8306d.tar.gz Qt-4b0435b0dc2287756221e35f2ebe9493aad8306d.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
Diffstat (limited to 'src/multimedia')
-rw-r--r-- | src/multimedia/audio/qaudiooutput_symbian_p.cpp | 3 |
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; |