iOS red bar at top of screen saying recording

hi all,

have you ever been on a phone call and returned to the home screen, you will see a green status bar at the top saying you are in a call.

in my app i will record sound, but it doesn’t yet, and this line

soundStream.setup(0, 1, sampleRate, startBufferSize, 4);

when you quit the app (with multitasking on), you get a red bar at the top saying ‘app x recording’

any ideas?

thanks

You can try turning ofSoundStream off when the app looses focus. I’m not 100% if that’ll fix it.