Allowing iPod music in a game

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • This is something that I stumbled upon last night and put in the iOS exporter owner's lounge - I've seen a couple of people asking how to allow iPod music to play while a game is running. It requires a small change to some of the exported code - you need to go into CSoundPlayer.m and change lines 47-48 from this:

    Code
    UInt32 sessionCategory=kAudioSessionCategory_SoloAmbientSound;
    AudioSessionSetProperty(kAudioSessionCategory_SoloAmbientSound, sizeof(sessionCategory), &sessionCategory);

    To this:

    Code
    UInt32 sessionCategory=kAudioSessionCategory_AmbientSound;
    AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(sessionCategory), &sessionCategory);

    This will let any running iPod music continue in the background, together with your game's sound.

    Please login to see this link.
    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!