Forums

OverviewV-Play 2 Support (Qt 5)No sound on iPad › Reply To: No sound on iPad

OverviewV-Play 2 Support (Qt 5)No sound on iPad › Reply To: No sound on iPad
#8965

Alex
V-Play Team

Hi,

for a recent project we were facing the same problem. The problem with the Audio element is not that it’s to “slow”, but if it is still playing (because the sound is too long), a play() call will not restart it, but gets ignored instead. We worked around it by using multiple Audio elements and toggle between them, so repetitive calls trigger different Audio elements. We modified the AudioManager from our FlappyBird demo game, to keep sound calls clean in the entities. Also don’t forget to check for settings.soundEnabled before playing the sound, since the Audio element is a standard Qt component.

I hope this works for you too.

Cheers,
Alex

  • This reply was modified 3 years, 5 months ago by  Alex.
  • This reply was modified 3 years, 5 months ago by  Alex.

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