yum-archive/TaSTT-Whisper
High-performance GPGPU inference of OpenAI's Whisper automatic speech recognition (ASR) model
git clone https://git.yummers.dev/yum-archive/TaSTT-Whisper
8c4603c
master
1#pragma warning disableCS0649 // Field is never assigned to 2using System . Runtime . InteropServices ; 3 4namespace Whisper . Internal 5{ 6/// <summary>A callback to get notified about the progress</summary> 7[ UnmanagedFunctionPointer ( CallingConvention . StdCall )] 8delegate int pfnReportProgress ( double value , IntPtr context , IntPtr pv ); 9 10/// <summary>C structure with a progress reporting function pointer</summary> 11public struct sProgressSink 12{ 13/// <summary>A callback to get notified about the progress</summary> 14[ MarshalAs ( UnmanagedType . FunctionPtr )] 15internal pfnReportProgress ? pfn ; 16 17/// <summary>Last parameter to the callback</summary> 18internal IntPtr pv ; 19} 20}