DynamicSoundEffectInstance.PendingBufferCount Property

Returns the number of audio buffers in the queue awaiting playback.

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

Syntax

public int PendingBufferCount { get; }

Property Value

The number of audio buffers in the queue.

Remarks

DynamicSoundEffectInstance will update the pending buffer count as each buffer finishes playback. This means the first buffer in the queue is the currently-playing audio buffer.

Exceptions

Exception type Condition
ObjectDisposedException The exception that is thrown if PendingBufferCount is called after DynamicSoundEffectInstance has been disposed.

See Also

DynamicSoundEffectInstance Class
DynamicSoundEffectInstance Members
Microsoft.Xna.Framework.Audio Namespace

Platforms

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