// // Generated by Brutal.Fmod.Generate; do not edit by hand. #nullable enable namespace Brutal.FmodApi { /// /// /// Callback for debug messages when using the logging version of FMOD. /// /// /// FMOD_DEBUG_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DebugCallback(DebugFlags flags, byte* file, int line, byte* func, byte* message); /// /// /// Callback for System notifications. /// /// /// FMOD_SYSTEM_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate Result SystemCallback( FmodSystem system, SystemCallbackType type, nint commandData1, nint commandData2, nint userData ); /// /// /// Callback for Channel or ChannelGroup notifications. /// /// /// FMOD_CHANNELCONTROL_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate Result ChannelControlCallback( ChannelControl channelControl, ChannelControlType controlType, ChannelControlCallbackType callbackType, nint commandData1, nint commandData2 ); /// /// /// Callback for DSP notifications. /// /// /// FMOD_DSP_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate Result DspCallback(Dsp dsp, DspCallbackType type, nint data); /// /// /// Callback to be called when a sound has finished loading, or a non blocking seek is occuring. /// /// /// FMOD_SOUND_NONBLOCK_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate Result SoundNonBlockCallback(Sound sound, Result result); /// /// /// Read callback used for user created sounds or to intercept FMOD's decoder during a normal sound open. /// /// /// FMOD_SOUND_PCMREAD_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate Result SoundPcmReadCallback(Sound sound, nint data, uint dataLen); /// /// /// Set position callback for user created sounds or to intercept FMOD's decoder during an API setPositon call. /// /// /// FMOD_SOUND_PCMSETPOS_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate Result SoundPcmSetPosCallback(Sound sound, int subSound, uint position, TimeUnit posType); /// /// /// Callback for opening a file. /// /// /// FMOD_FILE_OPEN_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result FileOpenCallback(byte* name, uint* fileSize, nint* handle, nint userData); /// /// /// Calback for closing a file. /// /// /// FMOD_FILE_CLOSE_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate Result FileCloseCallback(nint handle, nint userData); /// /// /// Callback for reading from a file. /// /// /// FMOD_FILE_READ_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result FileReadCallback( nint handle, nint buffer, uint sizeBytes, uint* bytesRead, nint userData ); /// /// /// Callback for seeking within a file. /// /// /// FMOD_FILE_SEEK_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate Result FileSeekCallback(nint handle, uint pos, nint userData); /// /// /// Callback for reading from a file asynchronously. /// /// /// FMOD_FILE_ASYNCREAD_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result FileAsyncReadCallback(AsyncReadInfo* info, nint userData); /// /// /// Callback for cancelling a pending asynchronous read. /// /// /// This callback is called to stop/release or shut down the resource that is holding the file, for example: /// releasing a Sound stream. /// /// /// FMOD_FILE_ASYNCCANCEL_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result FileAsyncCancelCallback(AsyncReadInfo* info, nint userData); /// /// /// Function to be called when asynchronous reading is finished. /// /// /// FMOD_FILE_ASYNCDONE_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate void FileAsyncDoneFunc(AsyncReadInfo* info, Result result); /// /// /// Callback to allocate a block of memory. /// /// /// FMOD_MEMORY_ALLOC_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate nint MemoryAllocCallback(uint size, MemoryType type, byte* sourceStr); /// /// /// Callback to re-allocate a block of memory to a different size. /// /// /// FMOD_MEMORY_REALLOC_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate nint MemoryReallocCallback(nint ptr, uint size, MemoryType type, byte* sourceStr); /// /// /// Callback to free a block of memory. /// /// /// FMOD_MEMORY_FREE_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate void MemoryFreeCallback(nint ptr, MemoryType type, byte* sourceStr); /// /// /// Callback to allow custom calculation of distance attenuation. /// /// /// FMOD_3D_ROLLOFF_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate float Rolloff3dCallback(ChannelControl channelControl, float distance); /// /// /// Codec open callback. /// /// /// 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. /// /// /// FMOD_CODEC_OPEN_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecOpenCallback( CodecState* codecState, Mode userMode, CreateSoundExInfo* userExInfo ); /// /// /// Codec close callback. /// /// /// This callback is called to shut down and release memory for the codec instance. /// /// /// FMOD_CODEC_CLOSE_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecCloseCallback(CodecState* codecState); /// /// /// Codec read callback. /// /// /// This callback is called to read PCM data from the codec instance. /// /// /// FMOD_CODEC_READ_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecReadCallback( CodecState* codecState, nint buffer, uint samplesIn, uint* samplesOut ); /// /// /// Codec get length callback. /// /// /// This callback is called to retrieve the length of the audio file of this codec type. /// /// /// FMOD_CODEC_GETLENGTH_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecGetLengthCallback(CodecState* codecState, uint* length, TimeUnit lengthType); /// /// /// Codec set position callback. /// /// /// This callback is called to set the audible position of a codec instance. /// /// /// FMOD_CODEC_SETPOSITION_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecSetPositionCallback( CodecState* codecState, int subSound, uint position, TimeUnit posType ); /// /// /// Codec get position callback. /// /// /// This callback is called to retrieve the current read position of the audio file of this codec type. /// /// /// FMOD_CODEC_GETPOSITION_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecGetPositionCallback(CodecState* codecState, uint* position, TimeUnit posType); /// /// /// Codec sound create callback. /// /// /// This callback is called after a Sound is created. /// /// /// FMOD_CODEC_SOUNDCREATE_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecSoundCreateCallback(CodecState* codecState, int subSound, Sound sound); /// /// /// Codec get wave format callback. /// /// /// This callback is called to allow FMOD to retrieve the format of the file the codec instance represents. /// /// /// FMOD_CODEC_GETWAVEFORMAT_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecGetWaveFormatCallback( CodecState* codecState, int index, CodecWaveFormat* waveFormat ); /// /// /// Codec metadata function. /// /// /// This function is to be called when a codec's metadata is updated. /// /// /// FMOD_CODEC_METADATA_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecMetadataFunc( CodecState* codecState, TagType tagType, byte* name, nint data, uint dataLen, TagDataType dataType, int unique ); /// /// /// Codec allocate memory function. /// /// /// FMOD_CODEC_ALLOC_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate nint CodecAllocFunc(uint size, uint align, byte* file, int line); /// /// /// Codec free memory function. /// /// /// FMOD_CODEC_FREE_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate void CodecFreeFunc(nint ptr, byte* file, int line); /// /// /// Codec log function. /// /// /// Call this function in an codec plug-in context to utilize FMOD's debugging system. /// /// /// FMOD_CODEC_LOG_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate void CodecLogFunc(DebugFlags level, byte* file, int line, byte* function, byte* str); /// /// /// Codec file read function. /// /// /// FMOD_CODEC_FILE_READ_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecFileReadFunc( CodecState* codecState, nint buffer, uint sizeBytes, uint* bytesRead ); /// /// /// Codec file seek function. /// /// /// FMOD_CODEC_FILE_SEEK_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecFileSeekFunc(CodecState* codecState, uint pos, CodecSeekMethod method); /// /// /// Codec file function to retrieve the current file position. /// /// /// FMOD_CODEC_FILE_TELL_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecFileTellFunc(CodecState* codecState, uint* pos); /// /// /// Codec file size function. /// /// /// FMOD_CODEC_FILE_SIZE_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result CodecFileSizeFunc(CodecState* codecState, uint* size); /// /// /// DSP create callback. /// /// /// This callback is called when you create a DSP unit instance of this type. /// /// /// FMOD_DSP_CREATE_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspCreateCallback(DspState* dspState); /// /// /// DSP release callback. /// /// /// This callback is called when the user of the plug-in releases a DSP unit instance. /// /// /// FMOD_DSP_RELEASE_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspReleaseCallback(DspState* dspState); /// /// /// DSP reset callback. /// /// /// This callback function is called to allow a DSP effect to reset its internal state. /// /// /// FMOD_DSP_RESET_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspResetCallback(DspState* dspState); /// /// /// DSP read callback. /// /// /// 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. /// /// /// FMOD_DSP_READ_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspReadCallback( DspState* dspState, float* inBuffer, float* outBuffer, uint length, int inChannels, int* outChannels ); /// /// /// Process callback. /// /// /// 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. /// /// /// FMOD_DSP_PROCESS_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspProcessCallback( DspState* dspState, uint length, DspBufferArray* inBufferArray, DspBufferArray* outBufferArray, Bool32 inputSidle, DspProcessOperation op ); /// /// /// DSP set position callback. /// /// /// This callback is called when the user of the plug-in wants to set a PCM position for a DSP. /// /// /// FMOD_DSP_SETPOSITION_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspSetPositionCallback(DspState* dspState, uint pos); /// /// /// DSP 'should I process?' callback. /// /// /// 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. /// /// /// FMOD_DSP_SHOULDIPROCESS_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspShouldIProcessCallback( DspState* dspState, Bool32 inputSidle, uint length, ChannelMask inMask, int inChannels, SpeakerMode speakerMode ); /// /// /// Set float parameter callback. /// /// /// This callback is called when the user wants to set a float parameter for a DSP unit. /// /// /// FMOD_DSP_SETPARAM_FLOAT_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspSetParamFloatCallback(DspState* dspState, int index, float value); /// /// /// Set integer parameter callback. /// /// /// This callback is called when the user of the plug-in wants to set an integer parameter for a DSP unit. /// /// /// FMOD_DSP_SETPARAM_INT_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspSetParamIntCallback(DspState* dspState, int index, int value); /// /// /// Set boolean parameter callback. /// /// /// This callback is called when the user of the plug-in wants to set a boolean parameter for a DSP unit. /// /// /// FMOD_DSP_SETPARAM_BOOL_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspSetParamBoolCallback(DspState* dspState, int index, Bool32 value); /// /// /// Set data parameter callback. /// /// /// This callback is called when the user of the plug-in wants to set a binary data parameter for a DSP unit. /// /// /// FMOD_DSP_SETPARAM_DATA_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspSetParamDataCallback(DspState* dspState, int index, nint data, uint length); /// /// /// Get float parameter callback. /// /// /// This callback is called when the user wants to get a floating point parameter value from a DSP unit. /// /// /// FMOD_DSP_GETPARAM_FLOAT_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspGetParamFloatCallback(DspState* dspState, int index, float* value, byte* valuesTr); /// /// /// Get integer parameter callback. /// /// /// This callback is called when the user wants to get an integer parameter value from a DSP unit. /// /// /// FMOD_DSP_GETPARAM_INT_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspGetParamIntCallback(DspState* dspState, int index, int* value, byte* valuesTr); /// /// /// Get boolean parameter callback. /// /// /// This callback is called when the user wants to get a boolean parameter value from a DSP unit. /// /// /// FMOD_DSP_GETPARAM_BOOL_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspGetParamBoolCallback(DspState* dspState, int index, Bool32* value, byte* valuesTr); /// /// /// Get data parameter callback. /// /// /// This callback is called when the user wants to get a data parameter value from a DSP unit. /// /// /// FMOD_DSP_GETPARAM_DATA_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspGetParamDataCallback( DspState* dspState, int index, nint* data, uint* length, byte* valuesTr ); /// /// /// System level DSP type registration callback. /// /// /// The callback is called as a one time initialization to set up the DSP plug-in type, rather than of /// an individual DSP instance. /// /// /// FMOD_DSP_SYSTEM_REGISTER_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspSystemRegisterCallback(DspState* dspState); /// /// /// System level DSP type deregister callback. /// /// /// The callback is called as a one time deregistration of a DSP plug-in type, rather than of an /// individual DSP instance. /// /// /// FMOD_DSP_SYSTEM_DEREGISTER_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result DspSystemDeregisterCallback(DspState* dspState); /// /// /// System level DSP type mix callback. /// /// /// The function can be used as a global pre/mid/post mix function for this type of DSP, rather than of /// an individual DSP instance. /// /// /// FMOD_DSP_SYSTEM_MIX_CALLBACK /// /// [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 ); /// /// /// Output get number of drivers callback. /// /// /// This callback is called to provide the user with the number of devices usable for the output mode. /// /// /// FMOD_OUTPUT_GETNUMDRIVERS_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputGetNumDriversCallback(OutputState* outputState, int* numDrivers); /// /// /// Output get driver info callback. /// /// /// This callback is called to provide the user with information about the selected audio driver. /// /// /// FMOD_OUTPUT_GETDRIVERINFO_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputGetDriverInfoCallback( OutputState* outputState, int id, byte* name, int nameLen, Guid* guid, int* systemRate, SpeakerMode* speakerMode, int* speakerModeChannels ); /// /// /// Output initialization callback. /// /// /// This callback is called to allow initialization of the output stream for mixing. /// /// /// FMOD_OUTPUT_INIT_CALLBACK /// /// [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 ); /// /// /// Output start callback. /// /// /// Called just before mixing should begin. This callback is called to start the output driver's audio stream. /// /// /// FMOD_OUTPUT_START_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputStartCallback(OutputState* outputState); /// /// /// Output stop callback. /// /// /// Called just after mixing has ended. This callback is called to stop the output driver's audio stream. /// /// /// FMOD_OUTPUT_STOP_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputStopCallback(OutputState* outputState); /// /// /// Output close callback. /// /// /// This callback is called to shut down and release the output driver's audio interface. /// /// /// FMOD_OUTPUT_CLOSE_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputCloseCallback(OutputState* outputState); /// /// /// Output update callback. /// /// /// FMOD_OUTPUT_UPDATE_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputUpdateCallback(OutputState* outputState); /// /// /// Output get output handle callback. /// /// /// This callback is called to provide the user with a low level audio interface handle that may be used to pass /// to other middleware. /// /// /// FMOD_OUTPUT_GETHANDLE_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputGetHandleCallback(OutputState* outputState, nint* handle); /// /// /// Output mixer callback. /// /// /// This callback can be used to stall the FMOD mixer thread until it is ready to call the FMOD mixer directly. /// /// /// FMOD_OUTPUT_MIXER_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputMixerCallback(OutputState* outputState); /// /// /// Output 3D Object get info callback. /// /// /// Called from the mixer thread to provide information about the capabilities of 3D object hardware. /// /// /// FMOD_OUTPUT_OBJECT3DGETINFO_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputObject3dGetInfoCallback(OutputState* outputState, int* maxHardwareobjects); /// /// /// Output 3D Object alloc callback. /// /// /// This callback is called to reserve hardware resources for a single 3D object. /// /// /// FMOD_OUTPUT_OBJECT3DALLOC_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputObject3dAllocCallback(OutputState* outputState, nint* object3d); /// /// /// Output 3D Object free callback. /// /// /// This callback is called to release a hardware resource previously acquired with /// FMOD_OUTPUT_OBJECT3DALLOC_CALLBACK. /// /// /// FMOD_OUTPUT_OBJECT3DFREE_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputObject3dFreeCallback(OutputState* outputState, nint object3d); /// /// /// Output 3D Object update callback. /// /// /// Called from the mixer thread once for every acquired 3D object every mix to provide 3D information and /// buffered audio. /// /// /// FMOD_OUTPUT_OBJECT3DUPDATE_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputObject3dUpdateCallback( OutputState* outputState, nint object3d, OutputObject3dInfo* info ); /// /// /// Output open port callback. /// /// /// FMOD_OUTPUT_OPENPORT_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputOpenPortCallback( OutputState* outputState, PortType portType, PortIndex portIndex, int* portId, int* portRate, int* portChannels, SoundFormat* portFormat ); /// /// /// Output close port callback. /// /// /// FMOD_OUTPUT_CLOSEPORT_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputClosePortCallback(OutputState* outputState, int portId); /// /// /// Output device list change callback. /// /// /// FMOD_OUTPUT_DEVICELISTCHANGED_CALLBACK /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputDeviceListChangedCallback(OutputState* outputState); /// /// /// Output read from mixer function. /// /// /// FMOD_OUTPUT_READFROMMIXER_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputReadFromMixerFunc(OutputState* outputState, nint buffer, uint length); /// /// /// Output copy port function. /// /// /// Function to copy the output from the mixer for the given auxiliary port. /// /// /// FMOD_OUTPUT_COPYPORT_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputCopyPortFunc(OutputState* outputState, int portId, nint buffer, uint length); /// /// /// Output request reset function. /// /// /// Request the output to shut down and restart. /// /// /// FMOD_OUTPUT_REQUESTRESET_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate Result OutputRequestResetFunc(OutputState* outputState); /// /// /// Output allocate memory function. /// /// /// FMOD_OUTPUT_ALLOC_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate nint OutputAllocFunc(uint size, uint align, byte* file, int line); /// /// /// Output free memory function. /// /// /// FMOD_OUTPUT_FREE_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate void OutputFreeFunc(nint ptr, byte* file, int line); /// /// /// Output log function. /// /// /// Call this function in an output plug-in context to utilize the FMOD Engine's debugging system. /// /// /// FMOD_OUTPUT_LOG_FUNC /// /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate void OutputLogFunc(DebugFlags level, byte* file, int line, byte* function, byte* str); /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } /// /// A wrapper for a function pointer to . /// 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); } }