// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------

namespace Win32.Media.Audio.XAudio2;

/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice"]/*' />
/// <unmanaged>IXAudio2Voice</unmanaged>
public unsafe partial struct IXAudio2Voice : IXAudio2Voice.Interface
{
	public void** lpVtbl;

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::GetVoiceDetails"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(0)]
	public void GetVoiceDetails(VoiceDetails* pVoiceDetails)
	{
		((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, VoiceDetails*, void>)(lpVtbl[0]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), pVoiceDetails);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::SetOutputVoices"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(1)]
	public HResult SetOutputVoices(VoiceSends* pSendList)
	{
		return ((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, VoiceSends*, int>)(lpVtbl[1]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), pSendList);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::SetEffectChain"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(2)]
	public HResult SetEffectChain(EffectChain* pEffectChain)
	{
		return ((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, EffectChain*, int>)(lpVtbl[2]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), pEffectChain);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::EnableEffect"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(3)]
	public HResult EnableEffect(uint EffectIndex, uint OperationSet)
	{
		return ((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, uint, uint, int>)(lpVtbl[3]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), EffectIndex, OperationSet);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::DisableEffect"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(4)]
	public HResult DisableEffect(uint EffectIndex, uint OperationSet)
	{
		return ((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, uint, uint, int>)(lpVtbl[4]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), EffectIndex, OperationSet);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::GetEffectState"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(5)]
	public void GetEffectState(uint EffectIndex, Bool32* pEnabled)
	{
		((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, uint, Bool32*, void>)(lpVtbl[5]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), EffectIndex, pEnabled);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::SetEffectParameters"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(6)]
	public HResult SetEffectParameters(uint EffectIndex, void* pParameters, uint ParametersByteSize, uint OperationSet)
	{
		return ((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, uint, void*, uint, uint, int>)(lpVtbl[6]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), EffectIndex, pParameters, ParametersByteSize, OperationSet);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::GetEffectParameters"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(7)]
	public HResult GetEffectParameters(uint EffectIndex, void* pParameters, uint ParametersByteSize)
	{
		return ((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, uint, void*, uint, int>)(lpVtbl[7]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), EffectIndex, pParameters, ParametersByteSize);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::SetFilterParameters"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(8)]
	public HResult SetFilterParameters(FilterParameters* pParameters, uint OperationSet)
	{
		return ((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, FilterParameters*, uint, int>)(lpVtbl[8]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), pParameters, OperationSet);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::GetFilterParameters"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(9)]
	public void GetFilterParameters(FilterParameters* pParameters)
	{
		((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, FilterParameters*, void>)(lpVtbl[9]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), pParameters);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::SetOutputFilterParameters"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(10)]
	public HResult SetOutputFilterParameters(IXAudio2Voice* pDestinationVoice, FilterParameters* pParameters, uint OperationSet)
	{
		return ((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, IXAudio2Voice*, FilterParameters*, uint, int>)(lpVtbl[10]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), pDestinationVoice, pParameters, OperationSet);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::GetOutputFilterParameters"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(11)]
	public void GetOutputFilterParameters(IXAudio2Voice* pDestinationVoice, FilterParameters* pParameters)
	{
		((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, IXAudio2Voice*, FilterParameters*, void>)(lpVtbl[11]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), pDestinationVoice, pParameters);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::SetVolume"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(12)]
	public HResult SetVolume(float Volume, uint OperationSet)
	{
		return ((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, float, uint, int>)(lpVtbl[12]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), Volume, OperationSet);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::GetVolume"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(13)]
	public void GetVolume(float* pVolume)
	{
		((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, float*, void>)(lpVtbl[13]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), pVolume);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::SetChannelVolumes"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(14)]
	public HResult SetChannelVolumes(uint Channels, float* pVolumes, uint OperationSet)
	{
		return ((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, uint, float*, uint, int>)(lpVtbl[14]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), Channels, pVolumes, OperationSet);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::GetChannelVolumes"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(15)]
	public void GetChannelVolumes(uint Channels, float* pVolumes)
	{
		((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, uint, float*, void>)(lpVtbl[15]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), Channels, pVolumes);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::SetOutputMatrix"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(16)]
	public HResult SetOutputMatrix(IXAudio2Voice* pDestinationVoice, uint SourceChannels, uint DestinationChannels, float* pLevelMatrix, uint OperationSet)
	{
		return ((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, IXAudio2Voice*, uint, uint, float*, uint, int>)(lpVtbl[16]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), pDestinationVoice, SourceChannels, DestinationChannels, pLevelMatrix, OperationSet);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::GetOutputMatrix"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(17)]
	public void GetOutputMatrix(IXAudio2Voice* pDestinationVoice, uint SourceChannels, uint DestinationChannels, float* pLevelMatrix)
	{
		((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, IXAudio2Voice*, uint, uint, float*, void>)(lpVtbl[17]))((IXAudio2Voice*)Unsafe.AsPointer(ref this), pDestinationVoice, SourceChannels, DestinationChannels, pLevelMatrix);
	}

	/// <include file='../XAudio2.xml' path='doc/member[@name="IXAudio2Voice::DestroyVoice"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(18)]
	public void DestroyVoice()
	{
		((delegate* unmanaged[MemberFunction]<IXAudio2Voice*, void>)(lpVtbl[18]))((IXAudio2Voice*)Unsafe.AsPointer(ref this));
	}

	public interface Interface 
	{
		[VtblIndex(0)]
		void GetVoiceDetails(VoiceDetails* pVoiceDetails);

		[VtblIndex(1)]
		HResult SetOutputVoices(VoiceSends* pSendList);

		[VtblIndex(2)]
		HResult SetEffectChain(EffectChain* pEffectChain);

		[VtblIndex(3)]
		HResult EnableEffect(uint EffectIndex, uint OperationSet);

		[VtblIndex(4)]
		HResult DisableEffect(uint EffectIndex, uint OperationSet);

		[VtblIndex(5)]
		void GetEffectState(uint EffectIndex, Bool32* pEnabled);

		[VtblIndex(6)]
		HResult SetEffectParameters(uint EffectIndex, void* pParameters, uint ParametersByteSize, uint OperationSet);

		[VtblIndex(7)]
		HResult GetEffectParameters(uint EffectIndex, void* pParameters, uint ParametersByteSize);

		[VtblIndex(8)]
		HResult SetFilterParameters(FilterParameters* pParameters, uint OperationSet);

		[VtblIndex(9)]
		void GetFilterParameters(FilterParameters* pParameters);

		[VtblIndex(10)]
		HResult SetOutputFilterParameters(IXAudio2Voice* pDestinationVoice, FilterParameters* pParameters, uint OperationSet);

		[VtblIndex(11)]
		void GetOutputFilterParameters(IXAudio2Voice* pDestinationVoice, FilterParameters* pParameters);

		[VtblIndex(12)]
		HResult SetVolume(float Volume, uint OperationSet);

		[VtblIndex(13)]
		void GetVolume(float* pVolume);

		[VtblIndex(14)]
		HResult SetChannelVolumes(uint Channels, float* pVolumes, uint OperationSet);

		[VtblIndex(15)]
		void GetChannelVolumes(uint Channels, float* pVolumes);

		[VtblIndex(16)]
		HResult SetOutputMatrix(IXAudio2Voice* pDestinationVoice, uint SourceChannels, uint DestinationChannels, float* pLevelMatrix, uint OperationSet);

		[VtblIndex(17)]
		void GetOutputMatrix(IXAudio2Voice* pDestinationVoice, uint SourceChannels, uint DestinationChannels, float* pLevelMatrix);

		[VtblIndex(18)]
		void DestroyVoice();
	}
}

