hi
when I want to play audio wav file format with the SoundEffectVPlay component the app will crash and quit only on android I’m testing on Samsung galaxy s6 + 2018 android version 8.0.
I have tested my code with the iphone 5s (ios 11) on the v-play live app and everything works perfectly.
Sometimes if I add audio files to the project folder and try to play those there will be no sound playing both on windows (10) and android.
Gamesound.qml
import Felgo 3.0
import QtQuick 2.0
Item {
// game sound effects
SoundEffectVPlay {
id: click
source: “../assets/snd/click.wav”
}
SoundEffectVPlay {
id: select
source: “../assets/snd/select.wav”
}
SoundEffectVPlay {
id: correct
source: “../assets/snd/correct.wav”
}
// functions to play sounds
function playClick() { click.play() }
function playSelect() { select.play() }
function playCorrect() { correct.play() }
}
main.qml
Gamesound{
id:gamesound
}
and the audio testing
MouseArea{
anchors.fill: parent
onReleased: {
gamesound.playClick();
}
}