Might be a deployment issue, are you sure .wav is in your package? Putting it into a resource file is probably the easiest option.
Harri On Thu, May 8, 2014 at 6:30 PM, Andres Piccininno <[email protected]>wrote: > Hello, I am currently developing an application for Android devices > with Qt. The problem I am dealing with is that the SoundEffect Object > is not working, is not performing any kind of sound when it has to when > I play the app on a real device. However, when I play the app on the Qt > emulator the sound does work. Why so? Could you please tell me what > do I need exactly to use the SoundEffect, I mean if I need to specify > something > in the Android Manifest or something? > The code I have in my Qml file is something like this one: > > import QtQuick 2.0 > ... > Item { > id: newGameScreen > width:640 > height:360 > signal startButtonClicked > ...... > SoundEffect { > id: sound_home > source: "content/sound_home.wav" > } > Timer { > interval: 1 > running: true > onTriggered: sound_home.play() > } > } > .... > > Thanks in advance. Andrés > > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/qt-creator > >
_______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
