internal static unsafe int CallI(void *_basePtr, SourceVoiceStopFlags flags, int operationSet, void *p) { throw new NotImplementedException(); }
/// <summary> /// Stops consumption of audio by the current voice. /// </summary> /// <param name="flags"> /// Flags that control how the voice is stopped. Can be <see cref="SourceVoiceStopFlags.None" /> or /// <see cref="SourceVoiceStopFlags.PlayTails" />. /// </param> /// <param name="operationSet"> /// Identifies this call as part of a deferred batch. For more details see /// http://msdn.microsoft.com/en-us/library/windows/desktop/ee415807(v=vs.85).aspx. /// </param> /// <returns>HRESULT</returns> public unsafe int StopNative(SourceVoiceStopFlags flags, int operationSet) { return InteropCalls.CallI(UnsafeBasePtr, flags, operationSet, ((void**) (*(void**) UnsafeBasePtr))[20]); }
/// <summary> /// Stops consumption of audio by the current voice. /// </summary> /// <param name="flags"> /// Flags that control how the voice is stopped. Can be <see cref="SourceVoiceStopFlags.None" /> or /// <see cref="SourceVoiceStopFlags.PlayTails" />. /// </param> /// <param name="operationSet"> /// Identifies this call as part of a deferred batch. For more details see /// http://msdn.microsoft.com/en-us/library/windows/desktop/ee415807(v=vs.85).aspx. /// </param> public void Stop(SourceVoiceStopFlags flags, int operationSet) { XAudio2Exception.Try(StopNative(flags, operationSet), N, "Stop"); }
internal static unsafe int CallI(void* _basePtr, SourceVoiceStopFlags flags, int operationSet, void* p) { throw new NotImplementedException(); }
/// <summary> /// Stops consumption of audio by the current voice. /// </summary> /// <param name="flags"> /// Flags that control how the voice is stopped. Can be <see cref="SourceVoiceStopFlags.None" /> or /// <see cref="SourceVoiceStopFlags.PlayTails" />. /// </param> /// <param name="operationSet"> /// Identifies this call as part of a deferred batch. For more details see /// http://msdn.microsoft.com/en-us/library/windows/desktop/ee415807(v=vs.85).aspx. /// </param> /// <returns>HRESULT</returns> public unsafe int StopNative(SourceVoiceStopFlags flags, int operationSet) { return(InteropCalls.CallI(UnsafeBasePtr, flags, operationSet, ((void **)(*(void **)UnsafeBasePtr))[20])); }