×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    2

    Unhappy can't record again, help!

    hello everyone, I meet trouble, please help me.
    my record code is following:
    ///////////////////////////
    //declare a CMdaAudioRecorderUtility object
    CMdaAudioRecorderUtility* iMdaAudioRecorderUtility;
    //////////////////////////
    // record to file tFullFileName
    iMdaAudioRecorderUtility = CMdaAudioRecorderUtility::NewL( *this );
    iMdaAudioRecorderUtility->OpenFileL( tFullFileName );
    /////////////////////////
    // record function
    iMdaAudioRecorderUtility->SetAudioDeviceMode(
    CMdaAudioRecorderUtility::ELocal );
    iMdaAudioRecorderUtility->SetGain( iMdaAudioRecorderUtility->MaxGain() );
    // Delete current audio sample from beginning of file
    iMdaAudioRecorderUtility->SetPosition( TTimeIntervalMicroSeconds( 0 ) );
    iMdaAudioRecorderUtility->CropL();
    iMdaAudioRecorderUtility->RecordL();
    //////////////////////////////////
    now problem is:
    I first record, everything is well, but when I record again, it can't work. Exit the program and enter again it repeat the problem, I guess maybe there is something wrong with the function CropL(), can you help me? thanks

  2. #2
    Registered User
    Join Date
    Mar 2005
    Posts
    3
    I have the same problem. The sound example provide by nokia have some bug. It just can record once.
    And I tried CropFromBeginning() it doesn't work either.

    who can tell us why?

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169
    If I remember right there are some serious issues with Crop and setPosition functions with OS 7.0s, so to work around it, you should delete the file and start by constructing a new one, every time you start recording, then it should work quite a well.

    yucca

  4. #4
    Registered User
    Join Date
    Mar 2005
    Posts
    3
    Thanks. I will try it

Posting Permissions

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