summaryrefslogtreecommitdiffstats
path: root/src/imports/audioengine/qsoundsource_openal_p.cpp
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2015-04-14 09:32:14 +0400
committerKonstantin Ritt <ritt.ks@gmail.com>2015-04-15 10:26:37 +0000
commit0f9a779f7214f22dfa4625b91dbc3e4d0fc1c122 (patch)
treead16041f0f4e614e6212cf4c2cae8e34c6896c77 /src/imports/audioengine/qsoundsource_openal_p.cpp
parent51d6b5c811c0e55888ae2e8404bd92f94d5a5aac (diff)
[QSoundBuffer] Replace isReady() with state() states
The two-state "isReady" is not enough for checking if loading was already requested. This also makes it abvious we're accepting load() after error. Change-Id: I8181f99e8b36be484ec791862941b5b2ec78eb1f Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'src/imports/audioengine/qsoundsource_openal_p.cpp')
-rw-r--r--src/imports/audioengine/qsoundsource_openal_p.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/audioengine/qsoundsource_openal_p.cpp b/src/imports/audioengine/qsoundsource_openal_p.cpp
index 5725a506a..d5b2be9ea 100644
--- a/src/imports/audioengine/qsoundsource_openal_p.cpp
+++ b/src/imports/audioengine/qsoundsource_openal_p.cpp
@@ -85,7 +85,7 @@ void QSoundSourcePrivate::release()
void QSoundSourcePrivate::bindBuffer(QSoundBuffer* soundBuffer)
{
unbindBuffer();
- Q_ASSERT(soundBuffer->isReady());
+ Q_ASSERT(soundBuffer->state() == QSoundBuffer::Ready);
m_bindBuffer = qobject_cast<QSoundBufferPrivateAL*>(soundBuffer);
m_bindBuffer->bindToSource(m_alSource);
m_isReady = true;