[QSoundBuffer] Replace isReady() with state() states
authorKonstantin Ritt <ritt.ks@gmail.com>
Tue, 14 Apr 2015 05:32:14 +0000 (09:32 +0400)
committerKonstantin Ritt <ritt.ks@gmail.com>
Wed, 15 Apr 2015 10:26:37 +0000 (10:26 +0000)
commit0f9a779f7214f22dfa4625b91dbc3e4d0fc1c122
treead16041f0f4e614e6212cf4c2cae8e34c6896c77
parent51d6b5c811c0e55888ae2e8404bd92f94d5a5aac
[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>
src/imports/audioengine/qaudioengine_openal_p.cpp
src/imports/audioengine/qaudioengine_openal_p.h
src/imports/audioengine/qdeclarative_audiosample_p.cpp
src/imports/audioengine/qsoundbuffer_p.h
src/imports/audioengine/qsoundinstance_p.cpp
src/imports/audioengine/qsoundsource_openal_p.cpp