x


Why does the iPad 1 audio mute?

Hey guys,

Having some issues here with the audio recorder by Prime31 when being used on the first Gen iPad. Completely unsure as to why this is happening as my code seems to be very similar to the example, and more confusingly it is working fine on the second Gen iPad. It also seems to be a bit random. Below is a snippet of the code i have written to record audio.

function Record()
{
    error = AudioRecorderBinding.prepareToRecordFile( "t0.wav" );

    if( error.Length > 0 )
       Debug.Log( "failed to prepare audio recorder: " + error );
    else
    {
       //Record the audio file for duration
       var didRecord : boolean = AudioRecorderBinding.recordForDuration( 60 );
       Debug.Log( "audioRecorderRecordForDuration: " + didRecord );
    }
}

As far as i can tell it shouldn't have any errors. It prepares an audio file, checks the error length, if its not greater than 0 it starts to record for a duration. This all works, i check the debug spam and it reports:

audioRecorderRecordForDuration: True

When i stop the audio through another button, i use the following code:

if(AudioRecorderBinding.isRecording())
{
    AudioRecorderBinding.stop( true );
}

This code should stop the audio recording and finish it off. After this i check the debug spam and i receive a line:

audioRecorderDidFinish event: file://.../t0.wav

Which is the callback to check when encoding is completed. More often than not, after all of this happens the system audio mutes for the app. I need to suspend the app, and go back into the app again to get audio back again.

Any ideas?

Thanks.

more ▼

asked Nov 22 '11 at 02:31 AM

Default117 gravatar image

Default117
331 26 29 33

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I have this issue as well, no solutions though o/

more ▼

answered May 11 '12 at 01:08 AM

AndyKorth gravatar image

AndyKorth
1 1

I think this was fixed in the latest update

May 11 '12 at 01:22 AM Default117
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1953
x1026
x360
x87

asked: Nov 22 '11 at 02:31 AM

Seen: 602 times

Last Updated: May 11 '12 at 01:22 AM