[pjsip] audio recording for symbian
Nanang Izzuddin
nanang at pjsip.org
Wed Nov 19 00:09:57 EST 2008
Hi,
You can get the maximum level of gain using iInputStream_->MaxGain(),
(which may differ among devices?). I guess you can refer to this
maximum gain level for adjusting the gain level.
Regards,
nanang
On Tue, Nov 18, 2008 at 2:09 PM, S. M. Nazmul Hasan (Opu)
<apus29 at gmail.com> wrote:
> HI Nanang,
>
> This is not a problem with G729 codec. I have checked all of those codecs
> and experimented same result.
>
> Its probably my placement of these line of be wrong.. I have tested
>
> iInputStream_ ->SetGain(value);
>
> this line in CPjAudioInputEngine::StartRecord() and
> CPjAudioInputEngine::MaiscOpenComplete(TInt aError)
> but both giving me same result...
>
> when i put this...
>
> iInputStream_ ->SetGain(0); then its mute recording but any other value
> gives
> me same result...
>
> seeing this
> http://www.newlc.com/topic-14775
>
> I have tried
>
> CMMFDevSound* cmmfDevSound = CMMFDevSound::NewL();
> cmmfDevSound->SetGain(value);
>
> but i think this cannot make any affect to the code..
>
> Thanks
>
> On Mon, Nov 17, 2008 at 7:29 PM, Nanang Izzuddin <nanang at pjsip.org> wrote:
>>
>> Hi,
>>
>> AFAIK, the only API for setting the recording volume in
>> CMdaAudioInputStream is SetGain(), if that didn't work, then perhaps
>> you can try to use APS (http://trac.pjsip.org/repos/wiki/APS). I
>> haven't tried to notice if this one record from smaller area though.
>> However, please try with other codecs to make sure that the recorded
>> audio from sound device is already clipped, if it is so, the cracking
>> noise should also occur using any codecs.
>>
>> Btw, in case this problem only occurs with your G.729 integration,
>> please make sure you have recheck the code, at least some items
>> described in
>> http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-November/005305.html.
>>
>> Regards,
>> nanang
>>
>>
>> On Mon, Nov 17, 2008 at 1:58 PM, S. M. Nazmul Hasan (Opu)
>> <apus29 at gmail.com> wrote:
>> > Hi,
>> >
>> > In symbian_sound.cpp audio is recording using CMdaAudioInputStream. And
>> > if i
>> > talk from one hand apart of the microphone it can capture voice. My
>> > question
>> > is if i want to capture voice like normal phone call that is from the
>> > small
>> > area of the microphone what i need to set in the code. I have checked
>> > using
>> > SetBalance(), SetGain(), function but no expected no result.
>> >
>> > N.B. I think this is why i am getting cracking sound in the other end...
>> >
>> > --
>> > S. M. Nazmul Hasan Opu
>> > Software Engineer
>> > R & D Application
>> > Dhaka, Bangladesh
>> > Mob: +880 1712 901 764
>> >
>> > _______________________________________________
>> > Visit our blog: http://blog.pjsip.org
>> >
>> > pjsip mailing list
>> > pjsip at lists.pjsip.org
>> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>> >
>> >
>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
>
> --
> S. M. Nazmul Hasan Opu
> Software Engineer
> R & D Application
> Dhaka, Bangladesh
> Mob: +880 1712 901 764
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
More information about the pjsip
mailing list