Re: Playing a sound in DirectX9 from Non active window (VB.NET2005
  Home FAQ Contact Sign in
microsoft.public.win32.programmer.directx.audio only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Playing a sound in DirectX9 from Non active window (VB.NET2005         

Group: microsoft.public.win32.programmer.directx.audio · Group Profile
Author: Rick Muething
Date: Sep 18, 2008 10:21

Chris,
That sounds like it should do the trick. But I am having problems with the
exact syntax and commands to set the GlobalFocus flag for the buffer.
Can you prompt me with the sequence of actual commads to set the buffer
flags and create the buffer with the global focus?

Thanks

--
Rick Muething
Winlink Development Team

"Chris P." wrote:
> On Thu, 18 Sep 2008 09:05:01 -0700, Rick Muething wrote:
>
>> All this works fine IF the application window is the active window. If the
>> application
>> Window is not the active window the sound card capture code (not shown)
>> continues to work fine but there is no playback from the sound card output.
>> This works the same way on several different sound cards (internal or
>> external USB). There is no exception thrown just no output from the sound
>> card. Once the window containing the application is made active again it
>> plays correctly.
>
> Add GlobalFocus to your BufferDescription.Flags.
>
> --
> http://www.chrisnet.net/code.htm
> [MS MVP for DirectShow / MediaFoundation]
>
no comments
diggit! del.icio.us! reddit!