Export (0) Print
Expand All

DynamicSoundEffectInstance.SubmitBuffer Method

Submits an audio buffer for playback.

NameDescription
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

ADD
Show:
© 2014 Microsoft