title: sound and Nstimer stopped when iphone is in deepsleepmode?
body: <p>I am creating an application in which I'm using nstimer and avaudioplayer to play sound,but both sound and timer stops when phone is in deep sleep mode.how to solve this issue?</p>
  
  <p>here is the code to play audio</p>
  
  <pre><code>-(void)PlayTickTickSound:(NSString*)SoundFileName
  {
  //Get the filename of the sound file:
  NSString *path = [NSString stringWithFormat:@"%@%@",[[NSBundle mainBundle] resourcePath],[NSString stringWithFormat:@"/%@",SoundFileName]];// @"/Tick.mp3"];
  //Get a URL for the sound file
  NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO];
  NSError *error;
  if(self.TickPlayer==nil)
  {
      self.TickPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:filePath error:&amp;error];
      // handle errors here.
      self.TickPlayer.delegate=self;
      [self.TickPlayer setNumberOfLoops:-1];  // repeat forever
      [self.TickPlayer play];
  }
  else
  {
      [self.TickPlayer play];
  }
  }
  </code></pre>