Hi,
I have created a windows service which kicks off 2 threads to record and play audio data on the soundcard. I am able to capture and decode sound but I cannot play sound...I get an exception: PriorityLevelNeeded.
The service does the following:
1) OnStart creates the Device and calls SetCooperativeLevel with the service's handle. 2) OnStart then kicks off a thread that will write sound data to the soundcard, when new data is available.
I tried moving the SetCooperativeLevel call to the write sound thread using the thread's handle as the owner but, this also gives the same exception.
Any help or information would be greatly appreciated!
Thanks!