Using DirectSound from a console [modified]
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, To be able to playback Wav MemoryStreams from a console I have to call this function
ApplicationDevice = new Device();
ApplicationDevice.SetCooperativeLevel(NEED_POINTER_TO_CONSOLE, CooperativeLevel.Normal);I have tried calling
[DllImport("kernel32")]
static extern IntPtr GetConsoleWindow();to get the a pointer to the console, but it doesn't work. The CTOR takes either a Control like a Form or a IntPtr. Please help me. TIA ------------------ I'm naked under my clothes... -- modified at 19:10 Saturday 20th May, 2006