Update isInBackground on applicationDidBecomeActive instead of applicationWillEnterForeground as AVAudioEngine doesn't seem to start before the application is active.
Update isInBackground on applicationDidBecomeActive instead of applicationWillEnterForeground as AVAudioEngine doesn't seem to start before the application is active.

pixlwave/Stingtk-iOS