title: AVAudioPlayer play returns false on hardware
body: <p>I'm trying to write some very simple code to play an audio file.  The code works fine on the iPad2 simulator.  On my iPad2 device however, [audooPlayer play] returns false and no audio is to be heard.</p>
  
  <p>I've tried both a .caf and .wav file.  I've rebooted my iPad2 and made sure the mute switch is off.  Any tips on how to debug are <em>greatly</em> appreciated.</p>
  
  <p>Sample code:</p>
  
  <pre><code>- (void)playAudio {
      NSString *file = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"wav"];
      url = [NSURL fileURLWithPath:file];
      NSError *error = nil;
      audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:&amp;error];
      if (error != nil) {
          NSLog(@"Error creating audio player: %@", [error localizedDescription]);
          return;
      }
      [audioPlayer setDelegate:self];
      if (![audioPlayer prepareToPlay]) {
          NSLog(@"Error preparing audio");
          return;
      }
      // Everything works fine up to this point
      if (![audioPlayer play]) {
          // I hit this on hardware.  Works perfect on the simulator.
          NSLog(@"Error playing audio");
          return;
      }
  </code></pre>