Exemplo n.º 1
0
        /// <summary>To be documented.</summary>
        public readonly unsafe int SetEffectChain(EffectChain *pEffectChain)
        {
            var @this = (IXAudio2SourceVoice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

            ret = ((delegate * unmanaged[Cdecl] < IXAudio2SourceVoice *, EffectChain *, int >)LpVtbl[2])(@this, pEffectChain);
            return(ret);
        }
Exemplo n.º 2
0
        /// <summary>To be documented.</summary>
        public readonly unsafe int SetEffectChain(EffectChain *pEffectChain)
        {
            var @this = (IXAudio2Voice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

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