[Solved] qt gameenabler audio plugin for qml

  • Hello!!

    I want to change all the audio of my games to the qt gameenabler audio plugin for qml (it seems much faster than the qt multimedia kit), but I have a problem, the example works ok in the phone and in the simulator, but I create a new project with this thinks:

    in the .pro file:

    in main.cpp this:

    @#include <QtGui/QApplication>
    #include "qmlapplicationviewer.h"
    #include "audioplugin.h"

    using namespace GE;

    int main(int argc, char *argv[])
    QScopedPointer<QApplication> app(createApplication(argc, argv));

    QmlApplicationViewer viewer;
    AudioPlugin plugin;
    return app->exec&#40;&#41;;


    in main.qml:
    @import QtQuick 1.1
    import GEAudio 1.0

    Rectangle {
    width: 640
    height: 360
    property int contador:0
    Text {
    text: recto.contador
    anchors.centerIn: parent

    AudioMixer {
        id: mymixer
        absoluteVolume: 0.5
        enabled: true
        AudioBuffer {
            id: sampleA
            source: "boing.wav"
    MouseArea {
        anchors.fill: parent
        onClicked: sampleA.play(&#41;



    but when I click the button here:

    @MouseArea {
    anchors.fill: parent
    onPressed: sampleA.play();

    the sound not play,


  • ok, this is now solved here:


    thanks to whiteF for the video!!!!

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.