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
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.
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.