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: Chris P.
Date: Sep 18, 2008 09:18

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!