Hi,
I'm following this exampe for playing wav files:
http://www.newlc.com/en/Playing-a-WAV-file.html
What I did is this:
in AppView.h I added:
CSoundPlayer* iSoundPlayer;
in AppView.cpp I added:
iSoundPlayer=CSoundPlayer::NewL(_L("C:\\Apps\\sound\\Audio.wav"));
iSoundPlayer->Play();
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);
CleanupStack::Pop(self);
return self;
}
how to fix it?
Thanks..



