DynamicSoundEffectInstance.SubmitBuffer Method

Submits an audio buffer for playback.

Overload List

Name Description
DynamicSoundEffectInstance.SubmitBuffer (Byte[]) Submits an audio buffer for playback. Playback starts at the beginning, and the buffer is played in its entirety.
DynamicSoundEffectInstance.SubmitBuffer (Byte[], Int32, Int32) Submits an audio buffer for playback. Playback begins at the specifed offset, and the byte count determines the size of the sample played.

Remarks

Silverlight applications must ensure that FrameworkDispatcher.Update is called regularly in order for "fire and forget" sounds to work correctly. SubmitBuffer 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.

See Also

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