Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML Audio loop and short delay during restart



  • Hi all

    I need to have a continuous rain background in my app. I found a small mp3 with rain sound and used Audio items with infinite loop as follow:

    Audio {
        source: "qrc:/Rain.mp3"
        loops: Audio.Infinite
    }
    

    The problem is when the sound finish and restart there is a small pause of around half second that doesn't allow to have a "continuous" rain sound effect. How could I "fix" this delay for allow the sound to be continuous? Using SoundEffect is not a good solution because it accept only .wav and in some system, like Android, the memory space available for fast sound used by SounfEffect is very limited....

    Thank you


Log in to reply