Why does playing a .wav using AVAudioPlayer hang my iPhone simulator?
<p>I'm trying to get a simple button to play a sound:</p>

<pre><code>-(IBAction)myButton:(id)sender {
    NSString *audioFilePath = [[NSBundle mainBundle] pathForResource:@"whistle" ofType:@"wav"];
    AVAudioPlayer *audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:audioFilePath] error:NULL];  
    [audioPlayer play];     
}
</code></pre>

<p>Using the debugger, the call to 'play' never returns.  No sound is played either.  The button stays in the highlighted state until I hit the home button to exit the app.</p>

<p>From the about menu of the simulator I'm using 'Version 2.2 (77.4.9)'.</p>

<p>-Bill</p>
