AudioManager.qml Example File

 import Felgo 3.0
 import QtQuick 2.0

 Item {
   id: audioManager

   // Use Sound IDs to play Sounds e.g.
   property int idDIE: 11
   property int idHIT: 22
   property int idPOINT: 33
   property int idSWOOSHING: 44
   property int idWING: 55

   function play(clipID) {

     switch(clipID) {
     case idDIE:
     case idHIT:
     case idPOINT:
     case idSWOOSHING:
     case idWING:

   SoundEffect {
     id: die
     source: "../../assets/audio/sfx_die.wav"
   SoundEffect {
     id: hit
     source: "../../assets/audio/sfx_hit.wav"
   SoundEffect {
     id: point
     source: "../../assets/audio/sfx_point.wav"
   SoundEffect {
     id: swoosh
     source: "../../assets/audio/sfx_swooshing.wav"
   SoundEffect {
     id: wing
     source: "../../assets/audio/sfx_wing.wav"

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
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support