Battery saving idea...
Could you consider a switch to turn off the screen? I do not need it whilst I am copying text and when I leave it running 'words' as I drop off to sleep I wake up with it lighting up the room :-)
Hi Paul, the problem I found was that when the screen goes to sleep the audio timing started to go completely off and the code becomes unreadable. To fix this I had to make the app turn off the auto sleep feature you would get with a normal app. I agree its not a great solution for battery life. I will at least try and see if I can have it act normally when its not playing code, that way it should turn off the screen and go to sleep a little while after the code is done playing.
But if it has the power to decode an MP3 with the screen off (locked), then surely there's something... have you checked the audio buffer size? See: iOS background audio stops when screen is locked http://stackoverflow.com/questions/11085007
Can you make that an option? I actually like it that it does not lock the screen between sessions.