audio.seek() not working on iPad?

Hello,

I’m having some issues with audio.seek(). I’ve written a music app that relies heavily on the ability for me to seek into an audio file during playback. In the simulator, it works great. But the audio.seek() command is not working on my iPad. I’ve tried both:

-- this works in the simulator but not on the iPad  
audio.seek(seek\_position, { channel = audio\_channel })  

… and …

-- this doesn't work on either the simulator or the ipad  
audio.stop(audio\_channel)  
audio.seek(seek\_position, { channel = audio\_channel })  
audio.play(sounds[selected\_sound])  

Any help would be much appreciated!

Cheers,

  • Bret [import]uid: 168791 topic_id: 30010 reply_id: 330010[/import]

I’m still stuck on this audio.seek() problem. To simplify things, I created this tiny app:

local ui = require("ui")  
sound = audio.loadSound("bouncing\_mp3.mp3")  
audio\_channel = audio.play(sound);  
audio.seek(3000, { channel = audio\_channel })  

When played in the simulator, the bouncing_mp3.mp3 plays near the end as expected. However, when run on an iPad, playback starts from the beginning and plays through the end. In other words, audio.seek() doesn’t seem to be working. In my original app, I loaded up a .wav file. In this demo, I’m using an .mp3. It doesn’t seem like the file format has anything to do with this issue.

Again, any suggestions or help would be much appreciated. I’m rather stuck!

  • Bret [import]uid: 168791 topic_id: 30010 reply_id: 120220[/import]

Ah ha… I may have figured it out. I’m using macincloud.com to rent a mac and do builds. I think that their installed version of corona is pretty outdated. I’m going to contact them and see if they’ll install the newest build for me.

  • B [import]uid: 168791 topic_id: 30010 reply_id: 120222[/import]

I’m still stuck on this audio.seek() problem. To simplify things, I created this tiny app:

local ui = require("ui")  
sound = audio.loadSound("bouncing\_mp3.mp3")  
audio\_channel = audio.play(sound);  
audio.seek(3000, { channel = audio\_channel })  

When played in the simulator, the bouncing_mp3.mp3 plays near the end as expected. However, when run on an iPad, playback starts from the beginning and plays through the end. In other words, audio.seek() doesn’t seem to be working. In my original app, I loaded up a .wav file. In this demo, I’m using an .mp3. It doesn’t seem like the file format has anything to do with this issue.

Again, any suggestions or help would be much appreciated. I’m rather stuck!

  • Bret [import]uid: 168791 topic_id: 30010 reply_id: 120220[/import]

Ah ha… I may have figured it out. I’m using macincloud.com to rent a mac and do builds. I think that their installed version of corona is pretty outdated. I’m going to contact them and see if they’ll install the newest build for me.

  • B [import]uid: 168791 topic_id: 30010 reply_id: 120222[/import]