Exemple #1
0
        /// <summary>To be documented.</summary>
        public readonly void GetFilterParameters(ref FilterParameters pParameters)
        {
            var @this = (IXAudio2SourceVoice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));

            fixed(FilterParameters *pParametersPtr = &pParameters)
            {
                ((delegate * unmanaged[Cdecl] < IXAudio2SourceVoice *, FilterParameters *, void >)LpVtbl[9])(@this, pParametersPtr);
            }
        }
Exemple #2
0
        /// <summary>To be documented.</summary>
        public readonly int SetFilterParameters(ref FilterParameters pParameters, uint OperationSet)
        {
            var @this = (IXAudio2SourceVoice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

            fixed(FilterParameters *pParametersPtr = &pParameters)
            {
                ret = ((delegate * unmanaged[Cdecl] < IXAudio2SourceVoice *, FilterParameters *, uint, int >)LpVtbl[8])(@this, pParametersPtr, OperationSet);
            }

            return(ret);
        }
Exemple #3
0
        /// <summary>To be documented.</summary>
        public readonly void GetFilterParameters(ref FilterParameters pParameters)
        {
            var @this = (IXAudio2Voice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));

            fixed(FilterParameters *pParametersPtr = &pParameters)
            {
            #if NET5_0_OR_GREATER
                ((delegate * unmanaged <IXAudio2Voice *, FilterParameters *, void>)LpVtbl[9])(@this, pParametersPtr);
            #else
                if (SilkMarshal.IsWinapiStdcall)
                {
                    ((delegate * unmanaged[Stdcall] < IXAudio2Voice *, FilterParameters *, void >)LpVtbl[9])(@this, pParametersPtr);
                }
                else
                {
                    ((delegate * unmanaged[Cdecl] < IXAudio2Voice *, FilterParameters *, void >)LpVtbl[9])(@this, pParametersPtr);
                }
            #endif
            }
        }
Exemple #4
0
        /// <summary>To be documented.</summary>
        public readonly int SetFilterParameters(ref FilterParameters pParameters, uint OperationSet)
        {
            var @this = (IXAudio2Voice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

            fixed(FilterParameters *pParametersPtr = &pParameters)
            {
            #if NET5_0_OR_GREATER
                ret = ((delegate * unmanaged <IXAudio2Voice *, FilterParameters *, uint, int>)LpVtbl[8])(@this, pParametersPtr, OperationSet);
            #else
                if (SilkMarshal.IsWinapiStdcall)
                {
                    ret = ((delegate * unmanaged[Stdcall] < IXAudio2Voice *, FilterParameters *, uint, int >)LpVtbl[8])(@this, pParametersPtr, OperationSet);
                }
                else
                {
                    ret = ((delegate * unmanaged[Cdecl] < IXAudio2Voice *, FilterParameters *, uint, int >)LpVtbl[8])(@this, pParametersPtr, OperationSet);
                }
            #endif
            }

            return(ret);
        }
Exemple #5
0
        /// <summary>To be documented.</summary>
        public readonly void GetOutputFilterParameters(ref IXAudio2Voice pDestinationVoice, ref FilterParameters pParameters)
        {
            var @this = (IXAudio2SourceVoice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));

            fixed(IXAudio2Voice *pDestinationVoicePtr = &pDestinationVoice)
            {
                fixed(FilterParameters *pParametersPtr = &pParameters)
                {
                    ((delegate * unmanaged[Cdecl] < IXAudio2SourceVoice *, IXAudio2Voice *, FilterParameters *, void >)LpVtbl[11])(@this, pDestinationVoicePtr, pParametersPtr);
                }
            }
        }
        /// <summary>To be documented.</summary>
        public readonly int SetOutputFilterParameters(ref IXAudio2Voice pDestinationVoice, ref FilterParameters pParameters, uint OperationSet)
        {
            var @this = (IXAudio2SubmixVoice *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

            fixed(IXAudio2Voice *pDestinationVoicePtr = &pDestinationVoice)
            {
                fixed(FilterParameters *pParametersPtr = &pParameters)
                {
                    ret = ((delegate * unmanaged[Cdecl] < IXAudio2SubmixVoice *, IXAudio2Voice *, FilterParameters *, uint, int >)LpVtbl[10])(@this, pDestinationVoicePtr, pParametersPtr, OperationSet);
                }
            }

            return(ret);
        }