user390039
user390039

Reputation: 23

iphone play and record low volume problem

I'm making kind of voip app, so I have to be able to play and record sound at the same time.

But.. when I play and record at same time, iphone's volume was very low.

I used

 //kAudio
        UInt32 audioCategory = kAudioSessionCategory_PlayAndRecord;
        AudioSessionSetProperty(kAudioSessionProperty_OverrideCategoryMixWithOthers, sizeof(audioCategory), &audioCategory);

and

I try to

UInt32 audioRoute = kAudioSessionOverrideAudioRoute_Speaker;
            AudioSessionSetProperty(kAudioSessionProperty_OverrideAudioRoute, sizeof(audioRoute), &audioRoute); 

but.. still volume is very low..

please help..!

P.S

I'm using playing sound by audioQueue and recording sound by audioUnit.

Upvotes: 2

Views: 1141

Answers (1)

Albrecht Andrzejewski
Albrecht Andrzejewski

Reputation: 2250

Have you set your volume using kAudioSessionProperty_InputGainScalar property prior to recording ?

BTW, this input gain property is only available from iOS5.

Upvotes: 1

Related Questions