Symbian
Symbian OS Library

FAQ-0726 Why does'nt the Audio Priority scheme for CMdaAudioPlayerUtility work on the emulator?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Emulator
Created: 08/17/2001 Modified: 09/20/2001
Number: FAQ-0726
Platform: Symbian OS v6.0

Question:
My application has two instances of CMdaAudioPlayerUtility::NewFilePlayerL. Lets define them:

iPlayerA = CMdaAudioPlayerUtility::NewFilePlayerL(_L("test..wav"), *this, 0, EMdaPriorityPreferenceTime);
iPlayerB = CMdaAudioPlayerUtility::NewFilePlayerL(_L("test2..wav"), *this, 100, EMdaPriorityPreferenceTime);

Why does iPlayerB only play sound when iPlayerA has finished, despite giving iPlayerB a higher priority than iPlayerA? Why do I get an KErrInUse if playerA has not completed?


Answer:
The WINS reference DEVSOUND Symbian supply under WINS does not support priorities.

Licencees implement the behaviour of priorities for their own for specific hardware.

The WINS DEVSOUND Symbian supply doesn't deal with the priorities sent to it. It always fails with KErrInUse if more than one CMdaAudioPlayerUtility attempts to access audio hardware under WINS.