Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DynamicSoundEffectInstance.BufferNeeded Event

XNA Game Studio 4.0
Event that occurs when the number of audio capture buffers awaiting playback is less than or equal to two.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public event EventHandler<EventArgs> BufferNeeded

Occurs when PendingBufferCount <= 2.

The BufferNeeded event is raised in the following situations:

Silverlight applications must ensure that FrameworkDispatcher.Update is called regularly in order for "fire and forget" sounds to work correctly. BufferNeeded throws an InvalidOperationException if FrameworkDispatcher.Update has not been called at least once before making this call. For more information, see Enable XNA Framework Events in Windows Phone Applications.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions

© 2015 Microsoft