/// <summary>To be documented.</summary> public readonly int SetEffectChain(ref EffectChain pEffectChain) { var @this = (IXAudio2SourceVoice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); int ret = default; fixed(EffectChain *pEffectChainPtr = &pEffectChain) { ret = ((delegate * unmanaged[Cdecl] < IXAudio2SourceVoice *, EffectChain *, int >)LpVtbl[2])(@this, pEffectChainPtr); } return(ret); }
/// <summary>To be documented.</summary> public readonly int SetEffectChain(ref EffectChain pEffectChain) { var @this = (IXAudio2Voice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); int ret = default; fixed(EffectChain *pEffectChainPtr = &pEffectChain) { #if NET5_0_OR_GREATER ret = ((delegate * unmanaged <IXAudio2Voice *, EffectChain *, int>)LpVtbl[2])(@this, pEffectChainPtr); #else if (SilkMarshal.IsWinapiStdcall) { ret = ((delegate * unmanaged[Stdcall] < IXAudio2Voice *, EffectChain *, int >)LpVtbl[2])(@this, pEffectChainPtr); } else { ret = ((delegate * unmanaged[Cdecl] < IXAudio2Voice *, EffectChain *, int >)LpVtbl[2])(@this, pEffectChainPtr); } #endif } return(ret); }