Hi all,
Got a strange problem here.
Trying to play a wave file upon certain event using CMdaAudioPlayerUtility::PlayFileL. Say the name of the sound file is test.wav. If I packaged the file under "C:\test.wav" and specified the filename constant as _LIT(KTestFile, "C:\\test.wav"), it works perfectly. If I substitute C drive with E drive and it also works perfectly. However, if i packaged the file under \resource\apps, and install the program under E drive instead of C drive, the sound no longer plays.
The package file:
"$(EPOCROOT)epoc32\winscw\c\test.wav" - "!:\resource\apps\test.wav"
in source code cpp file:
_LIT(KTestFile, "\\resource\\apps\\test.wav");
I've checked that the file is where it should be using FExplorer. Does anyone know what went wrong?
The reason that I am mocking around with the file location is because the program will be submitted to Symbian Signed and I am not sure if i can hardcoded the location of the file in C drive which may fail their test cases.
Thanks.



