I have a QML Audio element in my app that plays a sound. When I click a button I execute:
audio.play()
and when I click it again I execute:
audio.stop()
Ideally I would like to fade the sound in a little when the user clicks the button to play the sound, and fade it out a little when they press the button to stop the sound.
How do I do this?
I don't know how to program QML, but here is something I found in the documentation
Source : http://qt-project.org/doc/qt-5.0/qtmultimedia/multimedia-audioengine-qml-audioengine-qml.html
Use a number or property animation.
Then execute w/