Background Music Tutorials - Skin Investigation

Background Music Tutorials

iOS Multitasking: Background Audio

This is a continuation of the iOS Multitasking series. Along with notifications (as discussed last week), iOS Multitasking also provides a feature called Background Audio. As the name suggests, this feature enables applications to play audio even when the application is in the background, similar to how the iPod or Music Application bundled with the device works.
In this tutorial we will be covering playing a sound in the background, not how to record audio in the background. To demonstrate we will be making a simple noise maker and give it the ability to play in the background.

Step 1: Setting Up the Project

First create a new project and call it NoiseMaker (or some other name) as a View-Based Application with the default settings.

Once the project has been created go to NoiseMaker-Info.plist and add UIBackgroundModes as a new row. It should then create the array.

Open the array and to the right of Item 0 set it to audio. Your NoiseMaker-Info.plist should look like this:

Now go to the target settings and go to the tab labeled Build Phases.

iOS_Background_AudioWhen you've finished the last sub-step go to Link Binary With Libraries and add the AVFoundation framework.

In the Spotlight Search on your Mac for the file HeadSpin Long.caf. Find the file and rename it so the space is deleted.

Drag the file into Xcode under the NoiseMaker Directory. Make sure Copy Resources into Destinations Folder is checked.

Step 2: Setting Up the User Interface

In the NoiseMaker Directory select the NoiseMakerViewController.h file and add the following code under the #import declaration.


Now add the following code under the @interface declaration.

IBOutlet UIButton *playPauseButton; //Toggles the playback state IBOutlet UISlider *volumeControl; //Sets the volume for the audio player IBOutlet UILabel *alertLabel; //The alert label showing the status of the loading of the file AVAudioPlayer *audioPlayer; //Plays the audio

More about Background Music Tutorials

Alias Maya 3D Rendering

by whasaa

Here is a short list of my Maya Collection if you like any of these email me at Each DVD/CD $10.00 for download only.
Alias Maya Digital Tutors Fundamentals DVD
Alias Maya Gnomon Rendering DVD
Alias Maya Gnomon Texture Painting Fundamentals 2DVDS
Alias Maya Gnomon Texture Painting Weathered Surfaces 2DVDS
Alias Maya Enoble Tutorials 2DVDS
Alias Maya Understanding Fluid Effects CD
Alias Maya Techniques Exploring Particles CD
Alias Maya Techniques Rig Body Simulations For Visual Effects CD
Alias Maya Techniques Using Mental Ray CD

CorelDRAW X7 review: Customizable features make this robust design program ..  — PCWorld
.. purchase, as well as a $25 monthly subscription. People miffed by Adobe's wholesale move to subscriptions will find a great alternative here. ..

Galaxy 61 Delivers Show Open for VH1's 'The Fabulous Life  — Animation World Network
VHI recently called upon Galaxy 61 to create a show intro for the new 2014 season of The Fabulous Life, the hit series that reveals the extravagant places, possessions and pastimes of pop-culture's most famous celebrities. The Brooklyn-based ..

Ta-Dah Apps Jigsaw Genius
Mobile Application (Ta-Dah Apps)
  • High-definition graphics.
  • Growing collection of puzzle packs to download.
  • 5 different puzzle piece styles.
  • 4 different puzzle piece sizes.
  • Automatic save and restore.
  • Elegant UI design.
  • Selectable skins to suit all tastes.
  • Background music.
  • Animated tutorial.

Hunterdon County Polytech students bridge the gap thanks to local Rotary Clubs  — Hunterdon County Democrat
This year's Job Fair, on March 25, attracted the Dave Gansfuss Allstate Agent for an agency logo; G&H Publishing and author Katherine Kurz for children's book illustrations; Artiste Salon for a new logo, brochure and social media materials; St.

Related Posts