×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    CDevSoundAudioInput AMR?

    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

  2. #2
    Registered User
    Join Date
    May 2007
    Posts
    45

    Re: CDevSoundAudioInput AMR?

    Is the problem solved?
    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
  •  
×