CMdaAudioRecorderUtility::OpenFileL Problem on 8.0a Emulator

Login to reply to this topic.
Thu, 2005-06-30 10:40
Joined: 2004-12-31
Forum posts: 83
hi
i have written following code
Code:
iAudio = CMdaAudioRecorderUtility::NewL(*this);
iAudio->SetAudioDeviceMode(CMdaAudioRecorderUtility::ELocal);
iAudioUtility->OpenFileL(filename);
CActiveScheduler::Start();

file name contains an amr file path and is correct.

now OpenFileL() should open file and return KErrNone in MoscoStateChangeEventL()

Code:
void CAudioEngine::MoscoStateChangeEvent(CBase* , TInt aPreviousState, TInt aCurrentState, TInt aErrorCode)
{
    if (aErrorCode!=KErrNone)
    {
       return;
    }
    else
    {
switch(aPreviousState)
{
case CMdaAudioRecorderUtility::EOpen:
isFileOpen = ETrue;
//Get back to the calling function.
CActiveScheduler::Stop();
break;
default:
break;
}
     }
}


this code is woring fine NOKIA 6630 but on Series 60 8.0a emulator i am getting error code KErrNotFound. Even though the file is created. and if i am not running step by step it gives following error "Unhandled Execption in EPOC.EXE (VBRAUDIORECORDCONTROLLER.DLL): 0xC0000005: Access Violation."

can any one please help. and this code worked fine on both NOKIA 6600 and 7.0 emulator.

warm regards

saurabh


Tue, 2005-07-05 06:58
Joined: 2005-06-01
Forum posts: 76
Re: CMdaAudioRecorderUtility::OpenFileL Problem on 8.0a Emulator
I think KErrNotFound is definately a Path problem. Can you please check it once again the path you are passing to OpenFileL is right.

..
KiraN Puranik
Tue, 2005-07-05 11:37
Joined: 2004-12-31
Forum posts: 83
Re: CMdaAudioRecorderUtility::OpenFileL Problem on 8.0a Emulator
no it is not actually because the file is being created after OpenFileL() but it is still returning KErrNotFound. and i am sure bout this. same code is woking fine on device and series 60 SDK 2.0 but is giving problem on Series 60 FP2 SDK

warm regards

saurabh

Fri, 2005-07-15 09:44
Joined: 2004-12-31
Forum posts: 83
Re: CMdaAudioRecorderUtility::OpenFileL Problem on 8.0a Emulator
hi everyone

can any please confirm if this is a bug in series 60 SDK 2.0 FP2 edition


warm regards

saurabh

  • Login to reply to this topic.