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.SubmitBuffer Method

Submits an audio buffer for playback.

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.

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.

Community Additions

© 2015 Microsoft