Forums

OverviewV-Play 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
    V-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support