View Full Version : CMdaAudioPlayerUtility::NewL problem


balint toth
15-02-2005, 05:13 PM
Hi all,

when I try to call

CMdaAudioPlayerUtility::NewL(*this)

or

CMdaAudioPlayerUtility::NewFilePlayerL(aFile,*this )

in the example from newlc.com (http://www.newlc.com/article.php3?id_article=38) my emulator freezes, and the well known microsoft error report with "Don't send" button pops up.

The class is inhereted from MMdaAudioPlayerCallback:

class CSoundPlayer: public CBase, public MMdaAudioPlayerCallback
{
...
}

And the callback functions are also defined:

void CSoundPlayer::MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& /*aDuration*/)
{
iState = aError ? ENotReady : EReady;
}


void CSoundPlayer::MapcPlayComplete(TInt aError)
{
iState = aError ? ENotReady : EReady;
}


The situation was the same, when I was trying to realize audio output with CMdaAudioOutputStream. I can't get throught the problem. Please, help me!

Thank you very much in advance!

Best regards,
Balint Toth