I'm following this exampe for playing wav files:
What I did is this:
in AppView.h I added:
in AppView.cpp I added:
Also I included the necessary headers and libs, and CSpundPlayer.cpp files.
My error I'm getting is on this line: iSoundPlayer=CSoundPlayer::NewL(_L("C:\\Apps\\sound\\Audio.wav"));
illegal assignment to constant
here is the NewL func. from CSoundPlayer file:
CSoundPlayer* CSoundPlayer::NewL(const TDesC& aFile)
CSoundPlayer* self = NewLC(aFile);
how to fix it?