×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    7

    Help!!About recording used CMdaAudioRecorderUtility

    Can anyone help me?
    I use the code follow to record audio and it succeed at the first time after the program start.But when I record again ,It fails!When I delete this line of code :"iMdaAudioRecorderUtility->CropL();".It succeed to repead,but I need this line to delete the sample data recored before!

    What should I do?

    // Record from the device microphone
    iMdaAudioRecorderUtility->SetAudioDeviceMode(
    CMdaAudioRecorderUtility::ELocal );

    // Set maximum gain for recording
    iMdaAudioRecorderUtility->SetGain( iMdaAudioRecorderUtility->MaxGain() );

    // Delete current audio sample from beginning of file
    iMdaAudioRecorderUtility->SetPosition( TTimeIntervalMicroSeconds( 0 ) );
    iMdaAudioRecorderUtility->CropL();

    iMdaAudioRecorderUtility->RecordL();

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Help!!About recording used CMdaAudioRecorderUtility

    If I remember right, there was issues with some platforms on Series 60 with Setposition & Crop functions. One way to workaround the problem, is to delete the file and construct new one, when ever you want to start new recording.

    yucca

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    7

    Re: Help!!About recording used CMdaAudioRecorderUtility

    I used Close() to delete the file,but it seemed do nothing!
    this function has some problem too?

    Quote Originally Posted by symbianyucca
    If I remember right, there was issues with some platforms on Series 60 with Setposition & Crop functions. One way to workaround the problem, is to delete the file and construct new one, when ever you want to start new recording.

    yucca

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Help!!About recording used CMdaAudioRecorderUtility

    close just closes the File, for example you could use RFs's delete to delete the file.

    yucca

  5. #5
    Registered User
    Join Date
    Oct 2005
    Posts
    7

    Re: Help!!About recording used CMdaAudioRecorderUtility

    I use the code follows to delete a file ,but the program exit .

    RFs irfs;
    irfs.Delete(filename);

    Could you tell me why?I have close the file before.

    Quote Originally Posted by symbianyucca
    close just closes the File, for example you could use RFs's delete to delete the file.

    yucca

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Help!!About recording used CMdaAudioRecorderUtility

    maybe you should study teh basics of the symbian OS and programming, by reading some of thh books written on the topic.

    Basically any R-Class object needs to be connected or opened before it can be used. So check the class documentation to see which one applies in this case. Then also remember to close the R-class object when it is no longer needed.

    yucca

  7. #7
    Registered User
    Join Date
    Oct 2005
    Posts
    7

    Re: Help!!About recording used CMdaAudioRecorderUtility

    Thank you very much!
    I have succeed in this program.
    I am a newer of symbian and C++ and I'll word harder to them ,hehe!
    Realy thank you!

    Quote Originally Posted by symbianyucca
    maybe you should study teh basics of the symbian OS and programming, by reading some of thh books written on the topic.

    Basically any R-Class object needs to be connected or opened before it can be used. So check the class documentation to see which one applies in this case. Then also remember to close the R-class object when it is no longer needed.

    yucca

Similar Threads

  1. Buggy AMR Audio Recording. Please Help!!
    By jhamby in forum Symbian
    Replies: 8
    Last Post: 2009-07-07, 10:34
  2. Recording during a phone call
    By EManahov in forum Symbian Media (Closed)
    Replies: 10
    Last Post: 2007-06-23, 08:46
  3. CMdaAudioRecorderUtility - last second cut off
    By kibi1 in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2006-01-22, 09:08
  4. Recording audio using 'CMdaAudioRecorderUtility'
    By Shaikuny in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2004-10-22, 08:59
  5. Audio Recording failure in CropL
    By ashalu2 in forum Symbian
    Replies: 2
    Last Post: 2004-06-30, 08:22

Posting Permissions

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