Pause/resume audio problem

When I load and starts playing an audio file into my app it starts playing right away and no problems there. But if I try to pause the audio almost right when it starts and then resume it, it won’t start again. It works if I wait a while till I pause it. Is it a bug or something else?

I have only tried it in the iPad simulator in Corona 2011.591

Here is my code for pausing and resuming the audio:

  
audiopaused = false  
  
 function onFrame(event)  
 if event.phase == "ended" then  
  
 if audiopassed == false then  
 audio.pause( backgroundMusicChannel )  
 audiopaused = true  
 else  
 audio.resume( backgroundMusicChannel )  
 audiopaused = false  
 end  
 end  
 end  
  

[import]uid: 24111 topic_id: 14245 reply_id: 314245[/import]