title: AVAudioPlayer only plays in simulator but not device why?! (iPhone-SDK)
body: <p>I have the following simple code that plays a sound</p>
  
  <pre><code>NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"sound" ofType:@"wav"];
      player =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath: soundPath] error:nil];
      player.volume = 1;
      player.numberOfLoops = 0;
  [player prepareToPlay];
          [player play];
  </code></pre>
  
  <p>For some reason this code only plays in the simulator but not the device, any ideas?</p>
  
  <hr>
  
  <p>Update: Actually I installed AvTouch, a sample app from Apple onto 3.0 and that doens't work either. Is something wrong with AVAudioPlayer?</p>