title: Couldn't play system sound after switching to iOS 5
body: <p>This is how I played a beep sound effect in <strong>iOS 4</strong>:</p>
  <pre><code>SystemSoundId beepOnSoundId;
  
  CFURLRef soundUrl = CFBundleCopyResourceURL(
      CFBundleGetMainBundle(), 
      CFSTR(&quot;beep&quot;), 
      CFSTR(&quot;wav&quot;), 
      NULL
  );
  
  // soundUrl logged:
  // file://localhost/var/mobile/Applications/ ... beep.wav
  
  AudioServicesCreateSystemSoundID(soundUrl, &amp;beepOnSoundId);
  
  // beepOnSoundId logged: 4097
  
  AudioServicesPlaySystemSound(beepOnSoundId);
  </code></pre>
  <p>It stopped working, when I upgraded my device to <strong>iOS 5</strong>. I hear nothing. I logged out all the variables and none were nil or 0.</p>
  <p>How has the API changed in <strong>iOS 5</strong> that breaks my sound playing code?</p>
  <h2>Update</h2>
  <p>The problem may be because I have an <code>AVCaptureSession</code> running while I play the sound. iOS 5 somehow doesn't let you do this anymore. I need to play a beep sound while I am recording something from the camera.</p>