Hello,
After I open a sound file I am waiting fot the MoscoStateChangeEvent to be triggered but it does not.
When I minimize my application the event gets triggered.
How can I solve this problem.
Thank you.
Hello,
After I open a sound file I am waiting fot the MoscoStateChangeEvent to be triggered but it does not.
When I minimize my application the event gets triggered.
How can I solve this problem.
Thank you.
Do you happen to keep the system busy when your application is in foreground?
It works also when I open a dialog. It in not only about minimizing the application.
In addition, the priority of the thread is maximum.
That may be a problem indeed: the audio data is actually processed by the Multimedia Server, in a completely different process+thread. If yours is heavily using the CPU, others can not.
A thing I do not really understand in this thread is that the name "iMdaAudioPlayerUtility" suggests that you are using CMdaAudioPlayerUtility, while MMdaObjectStateChangeObserver and MoscoStateChangeEvent are not used by this particular class.