共用方式為


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.

Inheritance

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

Methods

The IAMDirectSound interface has these methods.

 
IAMDirectSound::GetDirectSoundInterface

The GetDirectSoundInterface method is not implemented.
IAMDirectSound::GetFocusWindow

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

The GetPrimaryBufferInterface method is not implemented.
IAMDirectSound::GetSecondaryBufferInterface

The GetSecondaryBufferInterface method is not implemented.
IAMDirectSound::ReleaseDirectSoundInterface

The ReleaseDirectSoundInterface method is not implemented.
IAMDirectSound::ReleasePrimaryBufferInterface

The ReleasePrimaryBufferInterface method is not implemented.
IAMDirectSound::ReleaseSecondaryBufferInterface

The ReleaseSecondaryBufferInterface method is not implemented.
IAMDirectSound::SetFocusWindow

The SetFocusWindow method specifies a window to handle sound playback.

Requirements

Requirement Value
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

Interfaces