Share via

IAMDirectSound interface (amaudio.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IAMDirectSound interface specifies which window has focus for controlling DirectSound audio playback. DirectShow provides limited support for this interface:

  • The DirectSound Renderer implements the GetFocusWindow and SetFocusWindow methods. It does not implement the other methods on the interface.
  • The Audio Renderer (WaveOut) exposes the interface but does not implement any of its methods.


The IAMDirectSound interface inherits from the IUnknown interface. IAMDirectSound also has these types of members:


The IAMDirectSound interface has these methods.


The GetDirectSoundInterface method is not implemented.

The GetFocusWindow method retrieves the window that is handling sound playback.

The GetPrimaryBufferInterface method is not implemented.

The GetSecondaryBufferInterface method is not implemented.

The ReleaseDirectSoundInterface method is not implemented.

The ReleasePrimaryBufferInterface method is not implemented.

The ReleaseSecondaryBufferInterface method is not implemented.

The SetFocusWindow method specifies a window to handle sound playback.


Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header amaudio.h

See also