DynamicSoundEffectInstance.BufferNeeded Event

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

Community Additions

ADD
Show: