×

Discussion Board

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

    CMdaAudioRecorderUtility and AMR on N6630

    Hi,

    anybody successfully record AMR into file on Nokia 6630 using CMdaAudioRecorderUtility class?
    Look here
    http://discussion.forum.nokia.com/fo...threadid=56972
    and here:
    http://forum.newlc.com/viewtopic.php...ecorderutility

    I play with it for two hours and still not working....
    Thanx for any replies with your experiences.
    Bye
    STEN

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165
    I think that it works better by using streaming, I remember already having problems recording AMR with 7610 when using CMdaAudioRecorderUtility, but streaming seems to always work still.

    search for sten's posts for more info.

    yucca

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037
    Hi,

    I am quite disappoint edof the Symbian and Nokia approach. I have no time to spend 2 weeks to find out, why camera doesnt work properly, why audio doesnt record at all. Video streaming is allowing only for video calls, not public api....

    I still dont understand why CMdaAudioRecorderUtility doesnt work. It is basic of the multimedia on the phone. It must work. I enumerated all plugins uids and try to record into wav to ensure that code is well written. Then I just change uids to amr ones. And it stops work. I never seen any thread from Nokia or any example of recording into amr format. So I must use streaming...

    It is really bug?

    Bye
    STEN

  4. #4
    Registered User
    Join Date
    Feb 2005
    Posts
    3

    Re: CMdaAudioRecorderUtility and AMR on N6630

    Quote Originally Posted by symbianyucca
    I think that it works better by using streaming, I remember already having problems recording AMR with 7610 when using CMdaAudioRecorderUtility, but streaming seems to always work still.

    search for sten's posts for more info.

    yucca
    That works on 6600 perfectly, but now that i'm trying to port my code on 6630, something strange happens: i have a timed record (about 3 secs) and it behaves like it only records 320 bytes of audio. The core of the program is based on the audiostream example, so here's the MaiscBufferCopied

    void CAudioEngine::MaiscBufferCopied(TInt aError, const TDesC8& aBuffer)
    {
    if (aError==KErrNone) // = keep recording
    {
    // record the next chunk (0.7 secs) of audio:KStreamBufferSize=11200 as in the example
    TDes8* buffer;
    buffer = new(ELeave) TBuf8<KStreamBufferSize>;
    CleanupStack::PushL(buffer);
    buffer->SetMax();
    iInputStream->ReadL(*buffer);
    iStreamContainer.Append(buffer);//iStreamContainer is a rpointerarray
    buffer = NULL;
    CleanupStack::Pop(buffer);
    }

    else if (aError==KErrAbort) // recording was stopped by user (using the Stop() method)
    {
    iInputStatus = ENotReady;
    }
    else // generic error (i.e. error while reading data from input)
    {
    iInputStatus = ENotReady;
    }
    }

    at the end of the process program exit with an out of bound error (user 22?) when converting to amr using the iCodec->ProcessL(*iSrcbuf, *iDstbuf); stuff that can be read elsewhere on this forum or newlc
    any suggestions?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×