Discussion Board
-
CDevSoundAudioInput AMR?
2005-01-25, 12:55
#1
Nokia Developer Champion
Hi,
should be CDevSoundAudioInput class used for recording/streaming AMR or NO?
I tried to use similar to code below
sett.iPriority = 80;
sett.iPref = EMdaPriorityPreferenceQuality;
sett.iState = EMMFStateRecording;
/*
iDSAmrInputAdapter = CDevSoundAudioInput::NewL(
KQcelpFullFixedRate,
1,
KMMFFourCCCodeAMR,
//TUid::Uid(0x101faf5c),
_L8(""),
sett,
*this );
*/
iDSAmrInputAdapter = CDevSoundAudioInput::NewL(
sett,
*this );
iDSAmrInputAdapter->PrimeL();
iDSAmrInputAdapter->SetBitRatesL( 8000, iUnsupp2 );
iDSAmrInputAdapter->SetChannelsL( 1 );
iDSAmrInputAdapter->SetGainL( iDSAmrInputAdapter->MaxGainL() );
iDSAmrInputAdapter->SetRatesL( KQcelpHalfFixedRate );
CMMFDataBuffer* buffer = CMMFDataBuffer::NewL( KBufferSize );
iDSAmrInputAdapter->RecordL( buffer );
After RecordL() method is called it fails with Access violation...
Anybody tries it?
Thanx
STeN
-
Re: CDevSoundAudioInput AMR?
2007-05-31, 15:47
#2
Registered User
Last edited by Rostgrm; 2007-06-01 at 16:40.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules