// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ namespace Win32.Media.Audio.XAudio2; /// /// IXAudio2MasteringVoice [NativeTypeName("struct IXAudio2MasteringVoice : IXAudio2Voice")] [NativeInheritance("IXAudio2Voice")] public unsafe partial struct IXAudio2MasteringVoice : IXAudio2MasteringVoice.Interface { public void** lpVtbl; /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(0)] public void GetVoiceDetails(VoiceDetails* pVoiceDetails) { ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), pVoiceDetails); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(1)] public HResult SetOutputVoices(VoiceSends* pSendList) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), pSendList); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(2)] public HResult SetEffectChain(EffectChain* pEffectChain) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), pEffectChain); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(3)] public HResult EnableEffect(uint EffectIndex, uint OperationSet) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), EffectIndex, OperationSet); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] public HResult DisableEffect(uint EffectIndex, uint OperationSet) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), EffectIndex, OperationSet); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] public void GetEffectState(uint EffectIndex, Bool32* pEnabled) { ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), EffectIndex, pEnabled); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] public HResult SetEffectParameters(uint EffectIndex, void* pParameters, uint ParametersByteSize, uint OperationSet) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), EffectIndex, pParameters, ParametersByteSize, OperationSet); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(7)] public HResult GetEffectParameters(uint EffectIndex, void* pParameters, uint ParametersByteSize) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), EffectIndex, pParameters, ParametersByteSize); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] public HResult SetFilterParameters(FilterParameters* pParameters, uint OperationSet) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), pParameters, OperationSet); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] public void GetFilterParameters(FilterParameters* pParameters) { ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), pParameters); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] public HResult SetOutputFilterParameters(IXAudio2Voice* pDestinationVoice, FilterParameters* pParameters, uint OperationSet) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), pDestinationVoice, pParameters, OperationSet); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(11)] public void GetOutputFilterParameters(IXAudio2Voice* pDestinationVoice, FilterParameters* pParameters) { ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), pDestinationVoice, pParameters); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(12)] public HResult SetVolume(float Volume, uint OperationSet) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[12]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), Volume, OperationSet); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(13)] public void GetVolume(float* pVolume) { ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), pVolume); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(14)] public HResult SetChannelVolumes(uint Channels, float* pVolumes, uint OperationSet) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), Channels, pVolumes, OperationSet); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(15)] public void GetChannelVolumes(uint Channels, float* pVolumes) { ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), Channels, pVolumes); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(16)] public HResult SetOutputMatrix(IXAudio2Voice* pDestinationVoice, uint SourceChannels, uint DestinationChannels, float* pLevelMatrix, uint OperationSet) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), pDestinationVoice, SourceChannels, DestinationChannels, pLevelMatrix, OperationSet); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(17)] public void GetOutputMatrix(IXAudio2Voice* pDestinationVoice, uint SourceChannels, uint DestinationChannels, float* pLevelMatrix) { ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), pDestinationVoice, SourceChannels, DestinationChannels, pLevelMatrix); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(18)] public void DestroyVoice() { ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(19)] public HResult GetChannelMask(uint* pChannelmask) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IXAudio2MasteringVoice*)Unsafe.AsPointer(ref this), pChannelmask); } public interface Interface : IXAudio2Voice.Interface { [VtblIndex(19)] HResult GetChannelMask(uint* pChannelmask); } }