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

            fixed(VoiceSends *pSendListPtr = &pSendList)
            {
                ret = ((delegate * unmanaged[Cdecl] < IXAudio2SourceVoice *, VoiceSends *, int >)LpVtbl[1])(@this, pSendListPtr);
            }

            return(ret);
        }
コード例 #2
0
        /// <summary>To be documented.</summary>
        public readonly int SetOutputVoices(ref VoiceSends pSendList)
        {
            var @this = (IXAudio2Voice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

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

            return(ret);
        }