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
                                          
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to