XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

SetCooperativeLevel, C# DirectX9

Last post 01-14-2008 7:27 PM by TOC2008. 1 replies.
  • 11-26-2007 1:55 PM

    SetCooperativeLevel, C# DirectX9

     

    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!

  • 01-14-2008 7:27 PM In reply to

    Re: SetCooperativeLevel, C# DirectX9

    I am having the same problem. Does someone has a clue about this?
Page 1 of 1 (2 items) Previous Next