Iphone audio only working in Simulator NOT in Device
<p>I have set up part of my app to play a sound.  Simple - but only is working in Simulator.</p>

<p>Initing audio session this way:</p>

<pre><code>  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
        // Custom initialization
    }

 AudioSessionInitialize(NULL,NULL,NULL,NULL);
 AudioSessionSetActive(YES);
 return self;
}
</code></pre>

<p>Playing sound, setting completion calback, and checking for file this way:</p>

<pre><code>NSString *path = [[NSBundle mainBundle] pathForResource:fileName ofType:@"mp3"];

 AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:path], &amp;soundID);
 AudioServicesAddSystemSoundCompletion (soundID,NULL,NULL,
             completionCallback,
             (void*) self);


 if([[NSFileManager defaultManager] fileExistsAtPath:path])
 {
  NSLog(@"Playing Sound" );
  AudioServicesPlaySystemSound(soundID);
 }
 else {
  NSLog(@"NO SOUND");
 }
</code></pre>

<p>In Simulator, the file is found, sound plays, and completion happens.  In device, file is found, sound does not play, and completion is never called. </p>

<p>Any ideas?  Thank you very much, both my forehead and my desk appreciate any replies...:)</p>
