I've created an audio player application. My player derives from MMdaAudioPlayerCallback and instantiates a CMdaAudioPlayerUtility object as follows:
The user can select any of the following options when this application is opened:
-Play(plays file if already selected OR prompts to select a file)
-Open File (drop down menu to select a file)
I try to play mp3 files (using inbuilt Nokia mp3 controller/decoder plugins). The player selects a file successfully and MapcInitComplete returns KErrNone. However when I try to Play, MapcPlayComplete returns KErrInUse most often(though on some tries it has played!!)
I even tried setting EMdaPriorityPreferenceTime/EMdaPriorityPreferenceQuality. Capability is ALL -TCB.
This problem arises on the target (it works fine on the emulator).
I am using S60_5th_Edition_SDK_v0.9
How can I get rid of KErrInUse??
Any suggestions would be appreciated. Thanks!!!