Why IAudioProcessingObject::Initialize method get calls multiple times ?

Hi All,
As I am trying to implement APO for a project , I found some interesting things which I am not able to understand.
Below are the ones which I need some explanation
1> As I debugged the SwapApo code and found that **Initialize ** method is getting called from different threads.
How to make Initialize Method to be called only once ?
2> How to get Valid Sample rate in Initialize Method instead of APOProcess.
3> How AudioEng.Dll is directly calling APOProcess without calling Initialize Method.

Any suggestions ?
Regards,
Rajendra

Rajendra_Sethi wrote:

As I am trying to implement APO for a project , I found some interesting things which I am not able to understand.

Below are the ones which I need some explanation

1> As I debugged the SwapApo code and found that Initialize method is getting called from different threads.
How to make Initialize Method to be called only once ?

Depending on the type of APO, you might be getting loaded into different
processes.  If you do get multiple Initialize calls from one instance,
you should return APOERR_ALREADY_INITIALIZED.

2> How to get Valid Sample rate in Initialize Method instead of APOProcess.

You can’t.  The list of sample rates has not been established by the
time Initialize is called.  That gets negotiated by the
InputFormatsSupported and OutputFormatsSupported methods.

3> How AudioEng.Dll is directly calling APOProcess without calling Initialize Method.

What makes you think it is?  First you said you’re getting multiple
Initialize calls, now you’re not getting any?

By the way, the real audio driver geeks all hang out in the
[wdmaudiodev] mailing list at https://www.freelists.org/list/wdmaudiodev

Hi Tim,
Thank you for your reply.
But how to post my queries to this mailing list. Do I need to mail from my mail id or is there any discussions like OSR.

Regards,
Rajendra

Rajendra_Sethi wrote:

But how to post my queries to this mailing list. Do I need to mail from my mail id or is there any discussions like OSR.

Did you do any web searching at all before posting to this list?
Honestly, Google is WAY faster than waiting for a forum reply.

Hi Tim,
Thank you for your reply. I already posted my queries to the mailing list.