Enable QSoundEffect with loopCount of Infinite to play
authorAndy Nichols <andy.nichols@digia.com>
Tue, 13 Aug 2013 13:16:54 +0000 (15:16 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 13 Aug 2013 16:40:59 +0000 (18:40 +0200)
commit11432c0e77727a88a9456b421c867928898b3663
tree6d91df074368c2d08f52a9be01b8cc9d4874c658
parent9f484eae83fd81e12aa4f07398ad13f9d453ba92
Enable QSoundEffect with loopCount of Infinite to play

Previously if the loopCount property of a QSoundEffect was set to
QSoundEffect::Infinite then no sound would be played at all.  This is
because QSoundEffect::Infinite == -2 and playback was only continued on
values above 0.

Task-number: QTBUG-32882

Change-Id: I739919a3e538128fc16f26ede5eb6cc4f2eb29fb
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/multimedia/audio/qsoundeffect_qaudio_p.cpp