public DSResult PlayNative(DSBPlayFlags flags)
 {
     return InteropCalls.CalliMethodPtr(_basePtr, 0, 0, unchecked((int)flags), ((void**)(*(void**)_basePtr))[12]);
 }
Example #2
0
 public DSResult PlayNative(DSBPlayFlags flags)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, 0, 0, unchecked ((int)flags), ((void **)(*(void **)_basePtr))[12]));
 }
 public void Play(DSBPlayFlags flags)
 {
     DirectSoundException.Try(PlayNative(flags), c, "Play");
 }
Example #4
0
 /// <summary>
 /// Causes the sound buffer to play, starting at the play cursor. 
 /// </summary>
 /// <param name="flags">Flags specifying how to play the buffer.</param>
 /// <param name="priority">Priority for the sound, used by the voice manager when assigning hardware mixing resources. The lowest priority is 0, and the highest priority is 0xFFFFFFFF. If the buffer was not created with the <see cref="DSBufferCapsFlags.LocDefer"/> flag, this value must be 0.</param>        
 /// <returns>DSResult</returns>
 public DSResult PlayNative(DSBPlayFlags flags, int priority)
 {
     return InteropCalls.CalliMethodPtr(UnsafeBasePtr, 0, priority, unchecked((int)flags), ((void**)(*(void**)UnsafeBasePtr))[12]);
 }
Example #5
0
 public void Play(DSBPlayFlags flags)
 {
     DirectSoundException.Try(PlayNative(flags), c, "Play");
 }
Example #6
0
 /// <summary>
 /// Causes the sound buffer to play, starting at the play cursor. 
 /// </summary>
 /// <param name="flags">Flags specifying how to play the buffer.</param>
 /// <param name="priority">Priority for the sound, used by the voice manager when assigning hardware mixing resources. The lowest priority is 0, and the highest priority is 0xFFFFFFFF. If the buffer was not created with the <see cref="DSBufferCapsFlags.LocDefer"/> flag, this value must be 0.</param>
 public void Play(DSBPlayFlags flags, int priority)
 {
     DirectSoundException.Try(PlayNative(flags, priority), InterfaceName, "Play");
 }
Example #7
0
 /// <summary>
 /// Causes the sound buffer to play, starting at the play cursor. 
 /// </summary>
 /// <param name="flags">Flags specifying how to play the buffer.</param>
 public void Play(DSBPlayFlags flags)
 {
     Play(flags, 0);
 }
Example #8
0
 /// <summary>
 /// Causes the sound buffer to play, starting at the play cursor.
 /// </summary>
 /// <param name="flags">Flags specifying how to play the buffer.</param>
 /// <param name="priority">Priority for the sound, used by the voice manager when assigning hardware mixing resources. The lowest priority is 0, and the highest priority is 0xFFFFFFFF. If the buffer was not created with the <see cref="DSBufferCapsFlags.LocDefer"/> flag, this value must be 0.</param>
 /// <returns>DSResult</returns>
 public DSResult PlayNative(DSBPlayFlags flags, int priority)
 {
     return(InteropCalls.CalliMethodPtr(UnsafeBasePtr, 0, priority, unchecked ((int)flags), ((void **)(*(void **)UnsafeBasePtr))[12]));
 }
Example #9
0
 /// <summary>
 /// Causes the sound buffer to play, starting at the play cursor.
 /// </summary>
 /// <param name="flags">Flags specifying how to play the buffer.</param>
 /// <param name="priority">Priority for the sound, used by the voice manager when assigning hardware mixing resources. The lowest priority is 0, and the highest priority is 0xFFFFFFFF. If the buffer was not created with the <see cref="DSBufferCapsFlags.LocDefer"/> flag, this value must be 0.</param>
 public void Play(DSBPlayFlags flags, int priority)
 {
     DirectSoundException.Try(PlayNative(flags, priority), InterfaceName, "Play");
 }
Example #10
0
 /// <summary>
 /// Causes the sound buffer to play, starting at the play cursor.
 /// </summary>
 /// <param name="flags">Flags specifying how to play the buffer.</param>
 public void Play(DSBPlayFlags flags)
 {
     Play(flags, 0);
 }