I’m using Composer to build a narrated book app and once you have the book read to you and start flipping back through the pages, the narration stops. The simulator shows the following for each page once the audio stop working:
Warning: audio error: alBufferData failed: Invalid Value
Warning: audio error: Play failed: Unknown Internal ErrorWarning: audio error: alBufferData failed: Invalid Operation
Warning: audio error: Could not get data for streamed PlayChannel: Warning: audio error: alBufferData failed: Invalid Operation
Warning: audio error: Could not get data for streamed PlayChannel:
It should be noted that the narration is on channel 1, other sounds on other channels continue to work. Each page disposes of the narration like the following:
function scene:hide( event )
if event.phase == “will” then
if audio.isChannelActive ( 1 ) then
audio.stop(1);
end
audio.dispose(readMeFile); readMeFile = nil;
elseif event.phase == “did” then
composer.test = nil
end
end
I thought maybe it was because I was using an older version of Corona, so I updated to Version 2014.2188 (2014.3.4). However, this didn’t help. Any ideas would be greatly appreciated!