Hello,
I’m working on an audio app that, as one of its features, allows the user to switch quickly between sounds. Here’s what the important piece of code looks like:
-- This code gets called at most 1 time every frame
-- Notice that I'm not specifying a channel to audio.play, which should allow it to use any free channel
audio\_channel, audio\_source = audio.play(selected\_sound)
audio.seek(seek\_position, { channel = audio\_channel })
It works flawlessly on the simulator on my PC, but when running on the iPad (IOS6), I occasionally get this error:
[blockcode]
mediaserverd[36] 13:14:01.739 AcquireLock – the mutex was already locked
[/blockcode]
And this hangs my audio until the currently playing sample has fully completed playback, then the app can be used as normal (until the error happens again).
The error only happens when the variable selected_sound changes often.
This has been driving me nuts for almost 2 weeks. At first I thought that my app might have been crashing, but I finally was able to view the error shown on the device. It appears to me that something deep down in the audio library is burping.
Any help would be much appreciated.
Thanks,
- Bret [import]uid: 168791 topic_id: 31921 reply_id: 331921[/import]