mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
2172 lines
86 KiB
C#
2172 lines
86 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Fmod.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.FmodApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for debug messages when using the logging version of FMOD.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-common.html#fmod_debug_callback">FMOD_DEBUG_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DebugCallback(DebugFlags flags, byte* file, int line, byte* func, byte* message);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for System notifications.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-system.html#fmod_system_callback">FMOD_SYSTEM_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate Result SystemCallback(
|
|
FmodSystem system,
|
|
SystemCallbackType type,
|
|
nint commandData1,
|
|
nint commandData2,
|
|
nint userData
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for Channel or ChannelGroup notifications.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelcontrol.html#fmod_channelcontrol_callback">FMOD_CHANNELCONTROL_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate Result ChannelControlCallback(
|
|
ChannelControl channelControl,
|
|
ChannelControlType controlType,
|
|
ChannelControlCallbackType callbackType,
|
|
nint commandData1,
|
|
nint commandData2
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for DSP notifications.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dsp.html#fmod_dsp_callback">FMOD_DSP_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate Result DspCallback(Dsp dsp, DspCallbackType type, nint data);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback to be called when a sound has finished loading, or a non blocking seek is occuring.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-sound.html#fmod_sound_nonblock_callback">FMOD_SOUND_NONBLOCK_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate Result SoundNonBlockCallback(Sound sound, Result result);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read callback used for user created sounds or to intercept FMOD's decoder during a normal sound open.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-sound.html#fmod_sound_pcmread_callback">FMOD_SOUND_PCMREAD_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate Result SoundPcmReadCallback(Sound sound, nint data, uint dataLen);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set position callback for user created sounds or to intercept FMOD's decoder during an API setPositon call.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-sound.html#fmod_sound_pcmsetpos_callback">FMOD_SOUND_PCMSETPOS_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate Result SoundPcmSetPosCallback(Sound sound, int subSound, uint position, TimeUnit posType);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for opening a file.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-system.html#fmod_file_open_callback">FMOD_FILE_OPEN_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result FileOpenCallback(byte* name, uint* fileSize, nint* handle, nint userData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Calback for closing a file.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-system.html#fmod_file_close_callback">FMOD_FILE_CLOSE_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate Result FileCloseCallback(nint handle, nint userData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for reading from a file.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-system.html#fmod_file_read_callback">FMOD_FILE_READ_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result FileReadCallback(
|
|
nint handle,
|
|
nint buffer,
|
|
uint sizeBytes,
|
|
uint* bytesRead,
|
|
nint userData
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for seeking within a file.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-system.html#fmod_file_seek_callback">FMOD_FILE_SEEK_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate Result FileSeekCallback(nint handle, uint pos, nint userData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for reading from a file asynchronously.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-system.html#fmod_file_asyncread_callback">FMOD_FILE_ASYNCREAD_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result FileAsyncReadCallback(AsyncReadInfo* info, nint userData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for cancelling a pending asynchronous read.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to stop/release or shut down the resource that is holding the file, for example:
|
|
/// releasing a Sound stream.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-system.html#fmod_file_asynccancel_callback">FMOD_FILE_ASYNCCANCEL_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result FileAsyncCancelCallback(AsyncReadInfo* info, nint userData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Function to be called when asynchronous reading is finished.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-system.html#fmod_file_asyncdone_func">FMOD_FILE_ASYNCDONE_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate void FileAsyncDoneFunc(AsyncReadInfo* info, Result result);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback to allocate a block of memory.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-common.html#fmod_memory_alloc_callback">FMOD_MEMORY_ALLOC_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate nint MemoryAllocCallback(uint size, MemoryType type, byte* sourceStr);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback to re-allocate a block of memory to a different size.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-common.html#fmod_memory_realloc_callback">FMOD_MEMORY_REALLOC_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate nint MemoryReallocCallback(nint ptr, uint size, MemoryType type, byte* sourceStr);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback to free a block of memory.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-common.html#fmod_memory_free_callback">FMOD_MEMORY_FREE_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate void MemoryFreeCallback(nint ptr, MemoryType type, byte* sourceStr);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback to allow custom calculation of distance attenuation.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-system.html#fmod_3d_rolloff_callback">FMOD_3D_ROLLOFF_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate float Rolloff3dCallback(ChannelControl channelControl, float distance);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec open callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to initialize a codec instance using the codec's file handle to verify if the file
|
|
/// is of the type of the codec, and to do any file reading required for initialization of the codec.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_open_callback">FMOD_CODEC_OPEN_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecOpenCallback(
|
|
CodecState* codecState,
|
|
Mode userMode,
|
|
CreateSoundExInfo* userExInfo
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec close callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to shut down and release memory for the codec instance.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_close_callback">FMOD_CODEC_CLOSE_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecCloseCallback(CodecState* codecState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec read callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to read PCM data from the codec instance.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_read_callback">FMOD_CODEC_READ_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecReadCallback(
|
|
CodecState* codecState,
|
|
nint buffer,
|
|
uint samplesIn,
|
|
uint* samplesOut
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec get length callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to retrieve the length of the audio file of this codec type.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_getlength_callback">FMOD_CODEC_GETLENGTH_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecGetLengthCallback(CodecState* codecState, uint* length, TimeUnit lengthType);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec set position callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to set the audible position of a codec instance.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_setposition_callback">FMOD_CODEC_SETPOSITION_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecSetPositionCallback(
|
|
CodecState* codecState,
|
|
int subSound,
|
|
uint position,
|
|
TimeUnit posType
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec get position callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to retrieve the current read position of the audio file of this codec type.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_getposition_callback">FMOD_CODEC_GETPOSITION_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecGetPositionCallback(CodecState* codecState, uint* position, TimeUnit posType);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec sound create callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called after a Sound is created.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_soundcreate_callback">FMOD_CODEC_SOUNDCREATE_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecSoundCreateCallback(CodecState* codecState, int subSound, Sound sound);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec get wave format callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to allow FMOD to retrieve the format of the file the codec instance represents.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_getwaveformat_callback">FMOD_CODEC_GETWAVEFORMAT_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecGetWaveFormatCallback(
|
|
CodecState* codecState,
|
|
int index,
|
|
CodecWaveFormat* waveFormat
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec metadata function.
|
|
/// </para>
|
|
/// <para>
|
|
/// This function is to be called when a codec's metadata is updated.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_metadata_func">FMOD_CODEC_METADATA_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecMetadataFunc(
|
|
CodecState* codecState,
|
|
TagType tagType,
|
|
byte* name,
|
|
nint data,
|
|
uint dataLen,
|
|
TagDataType dataType,
|
|
int unique
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec allocate memory function.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_alloc_func">FMOD_CODEC_ALLOC_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate nint CodecAllocFunc(uint size, uint align, byte* file, int line);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec free memory function.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_free_func">FMOD_CODEC_FREE_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate void CodecFreeFunc(nint ptr, byte* file, int line);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec log function.
|
|
/// </para>
|
|
/// <para>
|
|
/// Call this function in an codec plug-in context to utilize FMOD's debugging system.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_log_func">FMOD_CODEC_LOG_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate void CodecLogFunc(DebugFlags level, byte* file, int line, byte* function, byte* str);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec file read function.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_file_read_func">FMOD_CODEC_FILE_READ_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecFileReadFunc(
|
|
CodecState* codecState,
|
|
nint buffer,
|
|
uint sizeBytes,
|
|
uint* bytesRead
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec file seek function.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_file_seek_func">FMOD_CODEC_FILE_SEEK_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecFileSeekFunc(CodecState* codecState, uint pos, CodecSeekMethod method);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec file function to retrieve the current file position.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_file_tell_func">FMOD_CODEC_FILE_TELL_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecFileTellFunc(CodecState* codecState, uint* pos);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Codec file size function.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_file_size_func">FMOD_CODEC_FILE_SIZE_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CodecFileSizeFunc(CodecState* codecState, uint* size);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// DSP create callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called when you create a DSP unit instance of this type.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_create_callback">FMOD_DSP_CREATE_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspCreateCallback(DspState* dspState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// DSP release callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called when the user of the plug-in releases a DSP unit instance.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_release_callback">FMOD_DSP_RELEASE_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspReleaseCallback(DspState* dspState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// DSP reset callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback function is called to allow a DSP effect to reset its internal state.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_reset_callback">FMOD_DSP_RESET_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspResetCallback(DspState* dspState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// DSP read callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback receives an input signal and allows the user of the plug-in to filter or process the data and
|
|
/// write it to the output.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_read_callback">FMOD_DSP_READ_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspReadCallback(
|
|
DspState* dspState,
|
|
float* inBuffer,
|
|
float* outBuffer,
|
|
uint length,
|
|
int inChannels,
|
|
int* outChannels
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Process callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback receives an input signal, and allows the user to filter or process the data and write it to
|
|
/// the output. This is an alternative to the FMOD_DSP_READ_CALLBACK and FMOD_DSP_SHOULDIPROCESS_CALLBACK.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_process_callback">FMOD_DSP_PROCESS_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspProcessCallback(
|
|
DspState* dspState,
|
|
uint length,
|
|
DspBufferArray* inBufferArray,
|
|
DspBufferArray* outBufferArray,
|
|
Bool32 inputSidle,
|
|
DspProcessOperation op
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// DSP set position callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called when the user of the plug-in wants to set a PCM position for a DSP.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_setposition_callback">FMOD_DSP_SETPOSITION_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspSetPositionCallback(DspState* dspState, uint pos);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// DSP 'should I process?' callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to allow you to tell the FMOD mixer whether the FMOD_DSP_READ_CALLBACK callback
|
|
/// should be called or not. This can be used as an optimization to reduce CPU overhead.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_shouldiprocess_callback">FMOD_DSP_SHOULDIPROCESS_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspShouldIProcessCallback(
|
|
DspState* dspState,
|
|
Bool32 inputSidle,
|
|
uint length,
|
|
ChannelMask inMask,
|
|
int inChannels,
|
|
SpeakerMode speakerMode
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set float parameter callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called when the user wants to set a float parameter for a DSP unit.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_setparam_float_callback">FMOD_DSP_SETPARAM_FLOAT_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspSetParamFloatCallback(DspState* dspState, int index, float value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set integer parameter callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called when the user of the plug-in wants to set an integer parameter for a DSP unit.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_setparam_int_callback">FMOD_DSP_SETPARAM_INT_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspSetParamIntCallback(DspState* dspState, int index, int value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set boolean parameter callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called when the user of the plug-in wants to set a boolean parameter for a DSP unit.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_setparam_bool_callback">FMOD_DSP_SETPARAM_BOOL_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspSetParamBoolCallback(DspState* dspState, int index, Bool32 value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set data parameter callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called when the user of the plug-in wants to set a binary data parameter for a DSP unit.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_setparam_data_callback">FMOD_DSP_SETPARAM_DATA_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspSetParamDataCallback(DspState* dspState, int index, nint data, uint length);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get float parameter callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called when the user wants to get a floating point parameter value from a DSP unit.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_getparam_float_callback">FMOD_DSP_GETPARAM_FLOAT_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspGetParamFloatCallback(DspState* dspState, int index, float* value, byte* valuesTr);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get integer parameter callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called when the user wants to get an integer parameter value from a DSP unit.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_getparam_int_callback">FMOD_DSP_GETPARAM_INT_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspGetParamIntCallback(DspState* dspState, int index, int* value, byte* valuesTr);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get boolean parameter callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called when the user wants to get a boolean parameter value from a DSP unit.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_getparam_bool_callback">FMOD_DSP_GETPARAM_BOOL_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspGetParamBoolCallback(DspState* dspState, int index, Bool32* value, byte* valuesTr);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get data parameter callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called when the user wants to get a data parameter value from a DSP unit.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_getparam_data_callback">FMOD_DSP_GETPARAM_DATA_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspGetParamDataCallback(
|
|
DspState* dspState,
|
|
int index,
|
|
nint* data,
|
|
uint* length,
|
|
byte* valuesTr
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// System level DSP type registration callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// The callback is called as a one time initialization to set up the DSP plug-in <em>type</em>, rather than of
|
|
/// an individual DSP instance.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_system_register_callback">FMOD_DSP_SYSTEM_REGISTER_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspSystemRegisterCallback(DspState* dspState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// System level DSP type deregister callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// The callback is called as a one time deregistration of a DSP plug-in <em>type</em>, rather than of an
|
|
/// individual DSP instance.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_system_deregister_callback">FMOD_DSP_SYSTEM_DEREGISTER_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspSystemDeregisterCallback(DspState* dspState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// System level DSP type mix callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// The function can be used as a global pre/mid/post mix function for this <em>type</em> of DSP, rather than of
|
|
/// an individual DSP instance.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-dsp.html#fmod_dsp_system_mix_callback">FMOD_DSP_SYSTEM_MIX_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspSystemMixCallback(DspState* dspState, int stage);
|
|
|
|
/// FMOD_DSP_ALLOC_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate nint DspAllocFunc(uint size, MemoryType type, byte* sourceStr);
|
|
|
|
/// FMOD_DSP_REALLOC_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate nint DspReallocFunc(nint ptr, uint size, MemoryType type, byte* sourceStr);
|
|
|
|
/// FMOD_DSP_FREE_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate void DspFreeFunc(nint ptr, MemoryType type, byte* sourceStr);
|
|
|
|
/// FMOD_DSP_LOG_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate void DspLogFunc(DebugFlags level, byte* file, int line, byte* function, byte* str);
|
|
|
|
/// FMOD_DSP_GETSAMPLERATE_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspGetSampleRateFunc(DspState* dspState, int* rate);
|
|
|
|
/// FMOD_DSP_GETBLOCKSIZE_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspGetBlockSizeFunc(DspState* dspState, uint* blockSize);
|
|
|
|
/// FMOD_DSP_GETSPEAKERMODE_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspGetSpeakerModeFunc(
|
|
DspState* dspState,
|
|
SpeakerMode* speakerModeMixer,
|
|
SpeakerMode* speakerModeOutput
|
|
);
|
|
|
|
/// FMOD_DSP_GETCLOCK_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspGetClockFunc(DspState* dspState, ulong* clock, uint* offset, uint* length);
|
|
|
|
/// FMOD_DSP_GETLISTENERATTRIBUTES_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspGetListenerAttributesFunc(
|
|
DspState* dspState,
|
|
int* numListeners,
|
|
Attributes3d* attributes
|
|
);
|
|
|
|
/// FMOD_DSP_GETUSERDATA_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspGetUserDataFunc(DspState* dspState, nint* userData);
|
|
|
|
/// FMOD_DSP_DFT_FFTREAL_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspDftFftRealFunc(
|
|
DspState* dspState,
|
|
int size,
|
|
float* signal,
|
|
Complex* dft,
|
|
float* window,
|
|
int signalhop
|
|
);
|
|
|
|
/// FMOD_DSP_DFT_IFFTREAL_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspDftIfftrealFunc(
|
|
DspState* dspState,
|
|
int size,
|
|
Complex* dft,
|
|
float* signal,
|
|
float* window,
|
|
int signalhop
|
|
);
|
|
|
|
/// FMOD_DSP_PAN_SUMMONOMATRIX_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspPanSumMonoMatrixFunc(
|
|
DspState* dspState,
|
|
SpeakerMode sourceSpeakerMode,
|
|
float lowFrequencyGain,
|
|
float overallGain,
|
|
float* matrix
|
|
);
|
|
|
|
/// FMOD_DSP_PAN_SUMSTEREOMATRIX_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspPanSumStereoMatrixFunc(
|
|
DspState* dspState,
|
|
SpeakerMode sourceSpeakerMode,
|
|
float pan,
|
|
float lowFrequencyGain,
|
|
float overallGain,
|
|
int matrixHop,
|
|
float* matrix
|
|
);
|
|
|
|
/// FMOD_DSP_PAN_SUMSURROUNDMATRIX_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspPanSumSurroundMatrixFunc(
|
|
DspState* dspState,
|
|
SpeakerMode sourceSpeakerMode,
|
|
SpeakerMode targetSpeakerMode,
|
|
float direction,
|
|
float extent,
|
|
float rotation,
|
|
float lowFrequencyGain,
|
|
float overallGain,
|
|
int matrixHop,
|
|
float* matrix,
|
|
DspPanSurroundFlags flags
|
|
);
|
|
|
|
/// FMOD_DSP_PAN_SUMMONOTOSURROUNDMATRIX_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspPanSumMonoToSurroundMatrixFunc(
|
|
DspState* dspState,
|
|
SpeakerMode targetSpeakerMode,
|
|
float direction,
|
|
float extent,
|
|
float lowFrequencyGain,
|
|
float overallGain,
|
|
int matrixHop,
|
|
float* matrix
|
|
);
|
|
|
|
/// FMOD_DSP_PAN_SUMSTEREOTOSURROUNDMATRIX_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspPanSumStereoToSurroundMatrixFunc(
|
|
DspState* dspState,
|
|
SpeakerMode targetSpeakerMode,
|
|
float direction,
|
|
float extent,
|
|
float rotation,
|
|
float lowFrequencyGain,
|
|
float overallGain,
|
|
int matrixHop,
|
|
float* matrix
|
|
);
|
|
|
|
/// FMOD_DSP_PAN_GETROLLOFFGAIN_FUNC
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result DspPanGetRolloffGainFunc(
|
|
DspState* dspState,
|
|
DspPan3dRolloffType rolloff,
|
|
float distance,
|
|
float minDistance,
|
|
float maxDistance,
|
|
float* gain
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output get number of drivers callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to provide the user with the number of devices usable for the output mode.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_getnumdrivers_callback">FMOD_OUTPUT_GETNUMDRIVERS_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputGetNumDriversCallback(OutputState* outputState, int* numDrivers);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output get driver info callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to provide the user with information about the selected audio driver.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_getdriverinfo_callback">FMOD_OUTPUT_GETDRIVERINFO_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputGetDriverInfoCallback(
|
|
OutputState* outputState,
|
|
int id,
|
|
byte* name,
|
|
int nameLen,
|
|
Guid* guid,
|
|
int* systemRate,
|
|
SpeakerMode* speakerMode,
|
|
int* speakerModeChannels
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output initialization callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to allow initialization of the output stream for mixing.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_init_callback">FMOD_OUTPUT_INIT_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputInitCallback(
|
|
OutputState* outputState,
|
|
int selecteddriver,
|
|
InitFlags flags,
|
|
int* outputRate,
|
|
SpeakerMode* speakerMode,
|
|
int* speakerModeChannels,
|
|
SoundFormat* outputFormat,
|
|
int dspBufferLength,
|
|
int* dspNumBuffers,
|
|
int* dspNumAdditionalbuffers,
|
|
nint extraDriverData
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output start callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// Called just before mixing should begin. This callback is called to start the output driver's audio stream.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_start_callback">FMOD_OUTPUT_START_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputStartCallback(OutputState* outputState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output stop callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// Called just after mixing has ended. This callback is called to stop the output driver's audio stream.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_stop_callback">FMOD_OUTPUT_STOP_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputStopCallback(OutputState* outputState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output close callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to shut down and release the output driver's audio interface.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_close_callback">FMOD_OUTPUT_CLOSE_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputCloseCallback(OutputState* outputState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output update callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_update_callback">FMOD_OUTPUT_UPDATE_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputUpdateCallback(OutputState* outputState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output get output handle callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to provide the user with a low level audio interface handle that may be used to pass
|
|
/// to other middleware.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_gethandle_callback">FMOD_OUTPUT_GETHANDLE_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputGetHandleCallback(OutputState* outputState, nint* handle);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output mixer callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback can be used to stall the FMOD mixer thread until it is ready to call the FMOD mixer directly.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_mixer_callback">FMOD_OUTPUT_MIXER_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputMixerCallback(OutputState* outputState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output 3D Object get info callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// Called from the mixer thread to provide information about the capabilities of 3D object hardware.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_object3dgetinfo_callback">FMOD_OUTPUT_OBJECT3DGETINFO_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputObject3dGetInfoCallback(OutputState* outputState, int* maxHardwareobjects);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output 3D Object alloc callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to reserve hardware resources for a single 3D object.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_object3dalloc_callback">FMOD_OUTPUT_OBJECT3DALLOC_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputObject3dAllocCallback(OutputState* outputState, nint* object3d);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output 3D Object free callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// This callback is called to release a hardware resource previously acquired with
|
|
/// FMOD_OUTPUT_OBJECT3DALLOC_CALLBACK.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_object3dfree_callback">FMOD_OUTPUT_OBJECT3DFREE_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputObject3dFreeCallback(OutputState* outputState, nint object3d);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output 3D Object update callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// Called from the mixer thread once for every acquired 3D object every mix to provide 3D information and
|
|
/// buffered audio.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_object3dupdate_callback">FMOD_OUTPUT_OBJECT3DUPDATE_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputObject3dUpdateCallback(
|
|
OutputState* outputState,
|
|
nint object3d,
|
|
OutputObject3dInfo* info
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output open port callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_openport_callback">FMOD_OUTPUT_OPENPORT_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputOpenPortCallback(
|
|
OutputState* outputState,
|
|
PortType portType,
|
|
PortIndex portIndex,
|
|
int* portId,
|
|
int* portRate,
|
|
int* portChannels,
|
|
SoundFormat* portFormat
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output close port callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_closeport_callback">FMOD_OUTPUT_CLOSEPORT_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputClosePortCallback(OutputState* outputState, int portId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output device list change callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_devicelistchanged_callback">FMOD_OUTPUT_DEVICELISTCHANGED_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputDeviceListChangedCallback(OutputState* outputState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output read from mixer function.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_readfrommixer_func">FMOD_OUTPUT_READFROMMIXER_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputReadFromMixerFunc(OutputState* outputState, nint buffer, uint length);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output copy port function.
|
|
/// </para>
|
|
/// <para>
|
|
/// Function to copy the output from the mixer for the given auxiliary port.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_copyport_func">FMOD_OUTPUT_COPYPORT_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputCopyPortFunc(OutputState* outputState, int portId, nint buffer, uint length);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output request reset function.
|
|
/// </para>
|
|
/// <para>
|
|
/// Request the output to shut down and restart.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_requestreset_func">FMOD_OUTPUT_REQUESTRESET_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result OutputRequestResetFunc(OutputState* outputState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output allocate memory function.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_alloc_func">FMOD_OUTPUT_ALLOC_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate nint OutputAllocFunc(uint size, uint align, byte* file, int line);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output free memory function.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_free_func">FMOD_OUTPUT_FREE_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate void OutputFreeFunc(nint ptr, byte* file, int line);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output log function.
|
|
/// </para>
|
|
/// <para>
|
|
/// Call this function in an output plug-in context to utilize the FMOD Engine's debugging system.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-output.html#fmod_output_log_func">FMOD_OUTPUT_LOG_FUNC</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate void OutputLogFunc(DebugFlags level, byte* file, int line, byte* function, byte* str);
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DebugCallback"/>.
|
|
/// </summary>
|
|
public partial struct DebugCallbackPtr(DebugCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DebugCallbackPtr(DebugCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="SystemCallback"/>.
|
|
/// </summary>
|
|
public partial struct SystemCallbackPtr(SystemCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator SystemCallbackPtr(SystemCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="ChannelControlCallback"/>.
|
|
/// </summary>
|
|
public partial struct ChannelControlCallbackPtr(ChannelControlCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator ChannelControlCallbackPtr(ChannelControlCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspCallbackPtr(DspCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspCallbackPtr(DspCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="SoundNonBlockCallback"/>.
|
|
/// </summary>
|
|
public partial struct SoundNonBlockCallbackPtr(SoundNonBlockCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator SoundNonBlockCallbackPtr(SoundNonBlockCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="SoundPcmReadCallback"/>.
|
|
/// </summary>
|
|
public partial struct SoundPcmReadCallbackPtr(SoundPcmReadCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator SoundPcmReadCallbackPtr(SoundPcmReadCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="SoundPcmSetPosCallback"/>.
|
|
/// </summary>
|
|
public partial struct SoundPcmSetPosCallbackPtr(SoundPcmSetPosCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator SoundPcmSetPosCallbackPtr(SoundPcmSetPosCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="FileOpenCallback"/>.
|
|
/// </summary>
|
|
public partial struct FileOpenCallbackPtr(FileOpenCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator FileOpenCallbackPtr(FileOpenCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="FileCloseCallback"/>.
|
|
/// </summary>
|
|
public partial struct FileCloseCallbackPtr(FileCloseCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator FileCloseCallbackPtr(FileCloseCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="FileReadCallback"/>.
|
|
/// </summary>
|
|
public partial struct FileReadCallbackPtr(FileReadCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator FileReadCallbackPtr(FileReadCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="FileSeekCallback"/>.
|
|
/// </summary>
|
|
public partial struct FileSeekCallbackPtr(FileSeekCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator FileSeekCallbackPtr(FileSeekCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="FileAsyncReadCallback"/>.
|
|
/// </summary>
|
|
public partial struct FileAsyncReadCallbackPtr(FileAsyncReadCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator FileAsyncReadCallbackPtr(FileAsyncReadCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="FileAsyncCancelCallback"/>.
|
|
/// </summary>
|
|
public partial struct FileAsyncCancelCallbackPtr(FileAsyncCancelCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator FileAsyncCancelCallbackPtr(FileAsyncCancelCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="FileAsyncDoneFunc"/>.
|
|
/// </summary>
|
|
public partial struct FileAsyncDoneFuncPtr(FileAsyncDoneFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator FileAsyncDoneFuncPtr(FileAsyncDoneFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="MemoryAllocCallback"/>.
|
|
/// </summary>
|
|
public partial struct MemoryAllocCallbackPtr(MemoryAllocCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator MemoryAllocCallbackPtr(MemoryAllocCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="MemoryReallocCallback"/>.
|
|
/// </summary>
|
|
public partial struct MemoryReallocCallbackPtr(MemoryReallocCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator MemoryReallocCallbackPtr(MemoryReallocCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="MemoryFreeCallback"/>.
|
|
/// </summary>
|
|
public partial struct MemoryFreeCallbackPtr(MemoryFreeCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator MemoryFreeCallbackPtr(MemoryFreeCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="Rolloff3dCallback"/>.
|
|
/// </summary>
|
|
public partial struct Rolloff3dCallbackPtr(Rolloff3dCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator Rolloff3dCallbackPtr(Rolloff3dCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecOpenCallback"/>.
|
|
/// </summary>
|
|
public partial struct CodecOpenCallbackPtr(CodecOpenCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecOpenCallbackPtr(CodecOpenCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecCloseCallback"/>.
|
|
/// </summary>
|
|
public partial struct CodecCloseCallbackPtr(CodecCloseCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecCloseCallbackPtr(CodecCloseCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecReadCallback"/>.
|
|
/// </summary>
|
|
public partial struct CodecReadCallbackPtr(CodecReadCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecReadCallbackPtr(CodecReadCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecGetLengthCallback"/>.
|
|
/// </summary>
|
|
public partial struct CodecGetLengthCallbackPtr(CodecGetLengthCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecGetLengthCallbackPtr(CodecGetLengthCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecSetPositionCallback"/>.
|
|
/// </summary>
|
|
public partial struct CodecSetPositionCallbackPtr(CodecSetPositionCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecSetPositionCallbackPtr(CodecSetPositionCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecGetPositionCallback"/>.
|
|
/// </summary>
|
|
public partial struct CodecGetPositionCallbackPtr(CodecGetPositionCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecGetPositionCallbackPtr(CodecGetPositionCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecSoundCreateCallback"/>.
|
|
/// </summary>
|
|
public partial struct CodecSoundCreateCallbackPtr(CodecSoundCreateCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecSoundCreateCallbackPtr(CodecSoundCreateCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecGetWaveFormatCallback"/>.
|
|
/// </summary>
|
|
public partial struct CodecGetWaveFormatCallbackPtr(CodecGetWaveFormatCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecGetWaveFormatCallbackPtr(CodecGetWaveFormatCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecMetadataFunc"/>.
|
|
/// </summary>
|
|
public partial struct CodecMetadataFuncPtr(CodecMetadataFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecMetadataFuncPtr(CodecMetadataFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecAllocFunc"/>.
|
|
/// </summary>
|
|
public partial struct CodecAllocFuncPtr(CodecAllocFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecAllocFuncPtr(CodecAllocFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecFreeFunc"/>.
|
|
/// </summary>
|
|
public partial struct CodecFreeFuncPtr(CodecFreeFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecFreeFuncPtr(CodecFreeFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecLogFunc"/>.
|
|
/// </summary>
|
|
public partial struct CodecLogFuncPtr(CodecLogFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecLogFuncPtr(CodecLogFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecFileReadFunc"/>.
|
|
/// </summary>
|
|
public partial struct CodecFileReadFuncPtr(CodecFileReadFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecFileReadFuncPtr(CodecFileReadFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecFileSeekFunc"/>.
|
|
/// </summary>
|
|
public partial struct CodecFileSeekFuncPtr(CodecFileSeekFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecFileSeekFuncPtr(CodecFileSeekFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecFileTellFunc"/>.
|
|
/// </summary>
|
|
public partial struct CodecFileTellFuncPtr(CodecFileTellFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecFileTellFuncPtr(CodecFileTellFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CodecFileSizeFunc"/>.
|
|
/// </summary>
|
|
public partial struct CodecFileSizeFuncPtr(CodecFileSizeFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CodecFileSizeFuncPtr(CodecFileSizeFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspCreateCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspCreateCallbackPtr(DspCreateCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspCreateCallbackPtr(DspCreateCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspReleaseCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspReleaseCallbackPtr(DspReleaseCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspReleaseCallbackPtr(DspReleaseCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspResetCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspResetCallbackPtr(DspResetCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspResetCallbackPtr(DspResetCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspReadCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspReadCallbackPtr(DspReadCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspReadCallbackPtr(DspReadCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspProcessCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspProcessCallbackPtr(DspProcessCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspProcessCallbackPtr(DspProcessCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspSetPositionCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspSetPositionCallbackPtr(DspSetPositionCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspSetPositionCallbackPtr(DspSetPositionCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspShouldIProcessCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspShouldIProcessCallbackPtr(DspShouldIProcessCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspShouldIProcessCallbackPtr(DspShouldIProcessCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspSetParamFloatCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspSetParamFloatCallbackPtr(DspSetParamFloatCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspSetParamFloatCallbackPtr(DspSetParamFloatCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspSetParamIntCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspSetParamIntCallbackPtr(DspSetParamIntCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspSetParamIntCallbackPtr(DspSetParamIntCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspSetParamBoolCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspSetParamBoolCallbackPtr(DspSetParamBoolCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspSetParamBoolCallbackPtr(DspSetParamBoolCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspSetParamDataCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspSetParamDataCallbackPtr(DspSetParamDataCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspSetParamDataCallbackPtr(DspSetParamDataCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspGetParamFloatCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspGetParamFloatCallbackPtr(DspGetParamFloatCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspGetParamFloatCallbackPtr(DspGetParamFloatCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspGetParamIntCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspGetParamIntCallbackPtr(DspGetParamIntCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspGetParamIntCallbackPtr(DspGetParamIntCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspGetParamBoolCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspGetParamBoolCallbackPtr(DspGetParamBoolCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspGetParamBoolCallbackPtr(DspGetParamBoolCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspGetParamDataCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspGetParamDataCallbackPtr(DspGetParamDataCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspGetParamDataCallbackPtr(DspGetParamDataCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspSystemRegisterCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspSystemRegisterCallbackPtr(DspSystemRegisterCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspSystemRegisterCallbackPtr(DspSystemRegisterCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspSystemDeregisterCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspSystemDeregisterCallbackPtr(DspSystemDeregisterCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspSystemDeregisterCallbackPtr(DspSystemDeregisterCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspSystemMixCallback"/>.
|
|
/// </summary>
|
|
public partial struct DspSystemMixCallbackPtr(DspSystemMixCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspSystemMixCallbackPtr(DspSystemMixCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspAllocFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspAllocFuncPtr(DspAllocFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspAllocFuncPtr(DspAllocFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspReallocFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspReallocFuncPtr(DspReallocFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspReallocFuncPtr(DspReallocFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspFreeFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspFreeFuncPtr(DspFreeFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspFreeFuncPtr(DspFreeFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspLogFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspLogFuncPtr(DspLogFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspLogFuncPtr(DspLogFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspGetSampleRateFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspGetSampleRateFuncPtr(DspGetSampleRateFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspGetSampleRateFuncPtr(DspGetSampleRateFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspGetBlockSizeFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspGetBlockSizeFuncPtr(DspGetBlockSizeFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspGetBlockSizeFuncPtr(DspGetBlockSizeFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspGetSpeakerModeFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspGetSpeakerModeFuncPtr(DspGetSpeakerModeFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspGetSpeakerModeFuncPtr(DspGetSpeakerModeFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspGetClockFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspGetClockFuncPtr(DspGetClockFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspGetClockFuncPtr(DspGetClockFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspGetListenerAttributesFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspGetListenerAttributesFuncPtr(DspGetListenerAttributesFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspGetListenerAttributesFuncPtr(DspGetListenerAttributesFunc? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspGetUserDataFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspGetUserDataFuncPtr(DspGetUserDataFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspGetUserDataFuncPtr(DspGetUserDataFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspDftFftRealFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspDftFftRealFuncPtr(DspDftFftRealFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspDftFftRealFuncPtr(DspDftFftRealFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspDftIfftrealFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspDftIfftrealFuncPtr(DspDftIfftrealFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspDftIfftrealFuncPtr(DspDftIfftrealFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspPanSumMonoMatrixFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspPanSumMonoMatrixFuncPtr(DspPanSumMonoMatrixFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspPanSumMonoMatrixFuncPtr(DspPanSumMonoMatrixFunc? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspPanSumStereoMatrixFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspPanSumStereoMatrixFuncPtr(DspPanSumStereoMatrixFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspPanSumStereoMatrixFuncPtr(DspPanSumStereoMatrixFunc? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspPanSumSurroundMatrixFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspPanSumSurroundMatrixFuncPtr(DspPanSumSurroundMatrixFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspPanSumSurroundMatrixFuncPtr(DspPanSumSurroundMatrixFunc? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspPanSumMonoToSurroundMatrixFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspPanSumMonoToSurroundMatrixFuncPtr(DspPanSumMonoToSurroundMatrixFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspPanSumMonoToSurroundMatrixFuncPtr(
|
|
DspPanSumMonoToSurroundMatrixFunc? @delegate
|
|
) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspPanSumStereoToSurroundMatrixFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspPanSumStereoToSurroundMatrixFuncPtr(DspPanSumStereoToSurroundMatrixFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspPanSumStereoToSurroundMatrixFuncPtr(
|
|
DspPanSumStereoToSurroundMatrixFunc? @delegate
|
|
) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="DspPanGetRolloffGainFunc"/>.
|
|
/// </summary>
|
|
public partial struct DspPanGetRolloffGainFuncPtr(DspPanGetRolloffGainFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator DspPanGetRolloffGainFuncPtr(DspPanGetRolloffGainFunc? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputGetNumDriversCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputGetNumDriversCallbackPtr(OutputGetNumDriversCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputGetNumDriversCallbackPtr(OutputGetNumDriversCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputGetDriverInfoCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputGetDriverInfoCallbackPtr(OutputGetDriverInfoCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputGetDriverInfoCallbackPtr(OutputGetDriverInfoCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputInitCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputInitCallbackPtr(OutputInitCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputInitCallbackPtr(OutputInitCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputStartCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputStartCallbackPtr(OutputStartCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputStartCallbackPtr(OutputStartCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputStopCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputStopCallbackPtr(OutputStopCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputStopCallbackPtr(OutputStopCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputCloseCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputCloseCallbackPtr(OutputCloseCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputCloseCallbackPtr(OutputCloseCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputUpdateCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputUpdateCallbackPtr(OutputUpdateCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputUpdateCallbackPtr(OutputUpdateCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputGetHandleCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputGetHandleCallbackPtr(OutputGetHandleCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputGetHandleCallbackPtr(OutputGetHandleCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputMixerCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputMixerCallbackPtr(OutputMixerCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputMixerCallbackPtr(OutputMixerCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputObject3dGetInfoCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputObject3dGetInfoCallbackPtr(OutputObject3dGetInfoCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputObject3dGetInfoCallbackPtr(OutputObject3dGetInfoCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputObject3dAllocCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputObject3dAllocCallbackPtr(OutputObject3dAllocCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputObject3dAllocCallbackPtr(OutputObject3dAllocCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputObject3dFreeCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputObject3dFreeCallbackPtr(OutputObject3dFreeCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputObject3dFreeCallbackPtr(OutputObject3dFreeCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputObject3dUpdateCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputObject3dUpdateCallbackPtr(OutputObject3dUpdateCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputObject3dUpdateCallbackPtr(OutputObject3dUpdateCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputOpenPortCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputOpenPortCallbackPtr(OutputOpenPortCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputOpenPortCallbackPtr(OutputOpenPortCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputClosePortCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputClosePortCallbackPtr(OutputClosePortCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputClosePortCallbackPtr(OutputClosePortCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputDeviceListChangedCallback"/>.
|
|
/// </summary>
|
|
public partial struct OutputDeviceListChangedCallbackPtr(OutputDeviceListChangedCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputDeviceListChangedCallbackPtr(
|
|
OutputDeviceListChangedCallback? @delegate
|
|
) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputReadFromMixerFunc"/>.
|
|
/// </summary>
|
|
public partial struct OutputReadFromMixerFuncPtr(OutputReadFromMixerFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputReadFromMixerFuncPtr(OutputReadFromMixerFunc? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputCopyPortFunc"/>.
|
|
/// </summary>
|
|
public partial struct OutputCopyPortFuncPtr(OutputCopyPortFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputCopyPortFuncPtr(OutputCopyPortFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputRequestResetFunc"/>.
|
|
/// </summary>
|
|
public partial struct OutputRequestResetFuncPtr(OutputRequestResetFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputRequestResetFuncPtr(OutputRequestResetFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputAllocFunc"/>.
|
|
/// </summary>
|
|
public partial struct OutputAllocFuncPtr(OutputAllocFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputAllocFuncPtr(OutputAllocFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputFreeFunc"/>.
|
|
/// </summary>
|
|
public partial struct OutputFreeFuncPtr(OutputFreeFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputFreeFuncPtr(OutputFreeFunc? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="OutputLogFunc"/>.
|
|
/// </summary>
|
|
public partial struct OutputLogFuncPtr(OutputLogFunc? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator OutputLogFuncPtr(OutputLogFunc? @delegate) => new(@delegate);
|
|
}
|
|
}
|