diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2015-04-14 09:32:14 +0400 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2015-04-15 10:26:37 +0000 |
commit | 0f9a779f7214f22dfa4625b91dbc3e4d0fc1c122 (patch) | |
tree | ad16041f0f4e614e6212cf4c2cae8e34c6896c77 /src/imports/audioengine/qsoundinstance_p.cpp | |
parent | 51d6b5c811c0e55888ae2e8404bd92f94d5a5aac (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/qsoundinstance_p.cpp')
-rw-r--r-- | src/imports/audioengine/qsoundinstance_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/audioengine/qsoundinstance_p.cpp b/src/imports/audioengine/qsoundinstance_p.cpp index 522c0106e..20fef6d70 100644 --- a/src/imports/audioengine/qsoundinstance_p.cpp +++ b/src/imports/audioengine/qsoundinstance_p.cpp @@ -144,7 +144,7 @@ void QSoundInstance::prepareNewVariation() detach(); m_bindBuffer = playVar->sampleObject()->soundBuffer(); - if (m_bindBuffer->isReady()) { + if (m_bindBuffer->state() == QSoundBuffer::Ready) { Q_ASSERT(m_soundSource); m_soundSource->bindBuffer(m_bindBuffer); m_isReady = true; |