예제 #1
0
        /// <summary>To be documented.</summary>
        public readonly unsafe int SetOutputVoices(VoiceSends *pSendList)
        {
            var @this = (IXAudio2SourceVoice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

            ret = ((delegate * unmanaged[Cdecl] < IXAudio2SourceVoice *, VoiceSends *, int >)LpVtbl[1])(@this, pSendList);
            return(ret);
        }
예제 #2
0
        /// <summary>To be documented.</summary>
        public readonly unsafe int SetOutputVoices(VoiceSends *pSendList)
        {
            var @this = (IXAudio2Voice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

            #if NET5_0_OR_GREATER
            ret = ((delegate * unmanaged <IXAudio2Voice *, VoiceSends *, int>)LpVtbl[1])(@this, pSendList);
            #else
            if (SilkMarshal.IsWinapiStdcall)
            {
                ret = ((delegate * unmanaged[Stdcall] < IXAudio2Voice *, VoiceSends *, int >)LpVtbl[1])(@this, pSendList);
            }
            else
            {
                ret = ((delegate * unmanaged[Cdecl] < IXAudio2Voice *, VoiceSends *, int >)LpVtbl[1])(@this, pSendList);
            }
            #endif
            return(ret);
        }