hello everyone, I meet trouble, please help me.
my record code is following:
//declare a CMdaAudioRecorderUtility object
// record to file tFullFileName
iMdaAudioRecorderUtility = CMdaAudioRecorderUtility::NewL( *this );
iMdaAudioRecorderUtility->OpenFileL( tFullFileName );
// record function
iMdaAudioRecorderUtility->SetGain( iMdaAudioRecorderUtility->MaxGain() );
// Delete current audio sample from beginning of file
iMdaAudioRecorderUtility->SetPosition( TTimeIntervalMicroSeconds( 0 ) );
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
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.