Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › v-play live app for android version 4.15 feed back

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19906

    Amir

    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();
     }
     }

     

     

    #19954

    Günther
    Felgo Team

    Hi Amir,

    are you using Felgo Live fore testing or a custom app build for Desktop or your mobiles?
    Let me know in case it only affects Felgo Live so we can have a closer look.

    In General: The SoundEffectVPlay type and BackgroundMusic types are based on the QML SoundEffect and Audio types by Qt.
    We’ve seen the Audio type being more reliable than SoundEffect (thus also SoundEffectVPlay) in some cases, so you can also try to use Audio instead.

    If you experience the same issue with the Qt SoundEffect or Audio types, you can also consider to file a Qt bug report. The issue is not directly related to Felgo in this case.

    Best,
    Günther from Felgo

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded