Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › audioManager broken…

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

    Cho

    SoundEffectVPlay does not work after playing about 20 times simultaneously. I made a runner type game and added a sound when user picks up gold coins, and there are many gold coins in the whole game. After user picks about 20 coins, no more sound is played. Help me please…

    #12276

    Günther
    Felgo Team

    Hi Cho!

    Unfortunately this a known issue of the current Qt audio components, so we can’t really do anything about this.
    These are the workarounds we usually use when encountering this problem:

    • The SoundEffectVPlay component is based on the QML SoundEffect type. Sometimes the QML Audio type works a bit better, although it is not made for fast/immediate playback of sound effects.
    • One thing that helps most of the time is to generally keep audio items to a minimum / reuse them whenever possible. E.g. do not add an item to every coin, but use only one global “coinSound” item (e.g. in the scene/gamewindow or a special audio component that handles all sounds).
    • We sometimes also reuse the audio items for multiple sounds. Only use 5 sound items. Whenever a sound should be played, choose one of them that is currently not used for the playback.

     

    Cheers,
    Günther

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

RSS feed for this thread

You must be logged in to reply to this topic.