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

KonstantinSource codes8c4603c

master
680 B20 linesraw
1#pragma warning disable CS0649  // 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 )]
8	delegate int pfnReportProgress( double value, IntPtr context, IntPtr pv );
9
10	/// <summary>C structure with a progress reporting function pointer</summary>
11	public struct sProgressSink
12	{
13		/// <summary>A callback to get notified about the progress</summary>
14		[MarshalAs( UnmanagedType.FunctionPtr )]
15		internal pfnReportProgress? pfn;
16
17		/// <summary>Last parameter to the callback</summary>
18		internal IntPtr pv;
19	}
20}