<div dir="ltr"><div><div>Hello Everyone,<br><br></div>I've started developing for Jolla today, I am quite familiarez with the Qt/C++ language but not enough with the QML part.<br><br>I am trying to create a simple (and quite stupid) application which would simply play a Whip sound by clicking on the icon and whiping the phone. Maybe in later versions I would make it more... well.. usefull but until that day I am just trying to learn.<br><br>So here is my code right now :<br>import QtQuick 2.0<br>import Sailfish.Silica 1.0<br>import QtMultimedia 5.0<br><br>ApplicationWindow<br>{<br>    MouseArea {<br>        width   : parent.width<br>        height  : parent.height<br><br>        Image {<br>            id                      : whipImg;<br>            source                  : "qrc:/img/resources/images/whipImg.png"<br>            anchors.horizontalCenter: parent.horizontalCenter<br>            anchors.verticalCenter  : parent.verticalCenter<br>        }<br><br>        onClicked : {<br>            whipSound.stop()<br>            whipSound.play()<br>        }<br><br>        Audio {<br>            id      : whipSound<br>            loops   : Audio.Infinite<br>            source:"qrc:/sounds/resources/sounds/whipSound.flac"<br>        }<br>    }<br>}<br><br></div><div>And I have a problem with this. The song plays one time by taping on the picture (the song is a .flac file with 1second long of audio), and after that if I press the picture again it simply doesn't play.<br><br></div><div>How can I solve this problem ?<br><br>Best Regards Everyone !<br></div><br></div>