Simple Audio Recorder - Problem on iOS

Hi,
I am having a strange problem: Simple Audio Recorder from code samples doesn’t work on device.
Corona Simulator: Version 2014.2189 (2014.3.6)
Xcode Version 5.1.1 (5B1008)
iOS 6.1.3

This is a console log:

Jul 26 23:00:21 PhatCat SimpleAudioRecorder[330] \<Warning\>: Platform: iPhone / iPhone2,1 / 6.1.3 / PowerVR SGX 535 / OpenGL ES 2.0 IMGSGX535-73.16.1 Jul 26 23:00:22 PhatCat SimpleAudioRecorder[330] \<Warning\>: testfile.aif Jul 26 23:00:29 PhatCat mediaserverd[38] \<Error\>: 23:00:29.594 \<0x2ff2a000\> AudioConverterNew returned -50 Jul 26 23:00:29 PhatCat mediaserverd[38] \<Error\>: 23:00:29.631 \<0x2ff2a000\> IO\_ChangeIOFormat: error -50 Jul 26 23:00:29 PhatCat mediaserverd[38] \<Error\>: 23:00:29.660 \<0x2ff2a000\> Queue\_ChangeIOFormat: failed (-50) Jul 26 23:00:43 PhatCat mediaserverd[38] \<Error\>: 23:00:43.390 \<0x1ba0000\> AudioConverterNew returned -50 Jul 26 23:00:43 PhatCat mediaserverd[38] \<Error\>: 23:00:43.395 \<0x1da8000\> AudioConverterNew returned -50 Jul 26 23:00:43 PhatCat mediaserverd[38] \<Error\>: 23:00:43.402 \<0x1ba0000\> IO\_ChangeIOFormat: error -50 Jul 26 23:00:43 PhatCat mediaserverd[38] \<Error\>: 23:00:43.405 \<0x1da8000\> IO\_ChangeIOFormat: error -50 Jul 26 23:00:43 PhatCat mediaserverd[38] \<Error\>: 23:00:43.412 \<0x1ba0000\> Queue\_ChangeIOFormat: failed (-50) Jul 26 23:00:43 PhatCat mediaserverd[38] \<Error\>: 23:00:43.415 \<0x1da8000\> Queue\_ChangeIOFormat: failed (-50)

Any idea, anyone, pls?

Update: I’ve made it working with Corona Simulator Version 2013.2076 (2013.07.15). Also tuner works fine there.
Surprisingly, Corona API Docs say: Revision Current Public Release (2014.2189)

So, it should work… am I missing something somewhere? Some changes made on sound together with Graphics 2.0 update. Some strict Xcode requirements for sound? It would be good to know.

Update on Update: It stopped working suddenly. I didn’t make any change anywhere - and now I am getting this error codes with 2076 build:
 

...mediaserverd[38] \<Error\>: 12:49:20.644 \<0x2ff2a000\> IO\_ChangeIOFormat: error -50 ...mediaserverd[38] \<Error\>: 12:49:20.653 \<0x2ff2a000\> Queue\_ChangeIOFormat: failed (-50) ...mediaserverd[38] \<Error\>: 12:49:20.661 \<0x2ff2a000\> AudioConverterNew returned -50 ...mediaserverd[38] \<Error\>: 12:49:20.668 \<0x2ff2a000\> IO\_ChangeIOFormat: error -50 ...mediaserverd[38] \<Error\>: 12:49:20.678 \<0x2ff2a000\> Queue\_ChangeIOFormat: failed (-50)

Build 2076 was a graphics 2.0 build, so that’s not it.  I’ve just tested it on my iPad 4 (running iOS 8 Beta 4) and my Google Nexus 7 running Android 4.4.4 and both work.  I don’t know about iOS6, but starting with iOS 7, apps have to request access to the microphone and you the app user have to grant it.  Perhaps this has gotten turned off for you.  You can go to your settings app and into Sounds and see if your app has it disabled for some reason.  There was an Apple iOS SDK change between the two builds that could be the reason for the two behaviors.

We are currently running tests for the next public build and so far, this sample app has passed every device/OS combination it’s run on for devices that have a microphone

Rob

Update: I’ve made it working with Corona Simulator Version 2013.2076 (2013.07.15). Also tuner works fine there.
Surprisingly, Corona API Docs say: Revision Current Public Release (2014.2189)

So, it should work… am I missing something somewhere? Some changes made on sound together with Graphics 2.0 update. Some strict Xcode requirements for sound? It would be good to know.

Update on Update: It stopped working suddenly. I didn’t make any change anywhere - and now I am getting this error codes with 2076 build:
 

...mediaserverd[38] \<Error\>: 12:49:20.644 \<0x2ff2a000\> IO\_ChangeIOFormat: error -50 ...mediaserverd[38] \<Error\>: 12:49:20.653 \<0x2ff2a000\> Queue\_ChangeIOFormat: failed (-50) ...mediaserverd[38] \<Error\>: 12:49:20.661 \<0x2ff2a000\> AudioConverterNew returned -50 ...mediaserverd[38] \<Error\>: 12:49:20.668 \<0x2ff2a000\> IO\_ChangeIOFormat: error -50 ...mediaserverd[38] \<Error\>: 12:49:20.678 \<0x2ff2a000\> Queue\_ChangeIOFormat: failed (-50)

Build 2076 was a graphics 2.0 build, so that’s not it.  I’ve just tested it on my iPad 4 (running iOS 8 Beta 4) and my Google Nexus 7 running Android 4.4.4 and both work.  I don’t know about iOS6, but starting with iOS 7, apps have to request access to the microphone and you the app user have to grant it.  Perhaps this has gotten turned off for you.  You can go to your settings app and into Sounds and see if your app has it disabled for some reason.  There was an Apple iOS SDK change between the two builds that could be the reason for the two behaviors.

We are currently running tests for the next public build and so far, this sample app has passed every device/OS combination it’s run on for devices that have a microphone

Rob