-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
6.2.2
-
None
I attached the sources of a console app that plays a wav sound specified as an argument, see SoundTest.zip.
It connects to QAudioSink::stateChanged signal, calls QAudioSink::start and when it receives QAudio::IdleState it calls QAudioSink::start again.
On Windows and Android this results in an infinite loop, but on MacOS and iOS it is not, but the sound is played only once.
In my real-life app (not in the example) something goes wrong after an attempt to loop a sound in this way on MacOS/iOS and other sounds stops playing.
I tried to call QAudioSink::start with QTimer::singleShot, but it did not help.
Is this a bug or something that is not supported or probably used in a wrong way?
I also attached a wav sound, so the app can be started as
SoundTest sound.wav