I'm writing an application where i want to use the AudioPlayer example from here http://wiki.forum.nokia.com/index.ph...ng_audio_files
I want to use AudioPlayer.cpp from another class, TestAudioContainer, so i need to create an instance of it in that class. The constructor for AudioPlayer is:
CAudioPlayer* CAudioPlayer::NewL(MExamplePlayStateObserver& aObserver)
{
CAudioPlayer* self = CAudioPlayer::NewLC(aObserver);
CleanupStack::Pop(self);
return self;
}
the MExamplePlayStateObserver class is defined in the AudioPlayer header:
class MExamplePlayStateObserver
{
public:
virtual void StateUpdate(CMdaAudioClipUtility::TState aState, TInt aPosition, TInt aDuration)=0;
};
So to create and instance of AudioPlayer in TestAudioContainer, i need to supply the AudioPlayer constructor with a MExamplePlayStateObserver parameter, and i'm not sure what to put. Just all NULL or what? Also, i realise i may be way off the mark here - i'm pretty unfamiliar with C++
cheers





