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 once 2#include "Utils/miscUtils.h" 3#include "Utils/WTL/atlcrack.h" 4 5// This control renders a black circle, and in the active state, the circle is filled with a bright color. 6class CircleIndicator :public CWindowImpl < CircleIndicator > 7{ 8public : 9static ATL ::CWndClassInfo & GetWndClassInfo (); 10 11BEGIN_MSG_MAP (CircleIndicator ) 12MSG_WM_PAINT (onPaint ) 13MSG_WM_DESTROY (onDestroy ) 14END_MSG_MAP () 15 16// Class registration 17static HRESULT registerClass (); 18 19void setActive (bool nowActive ); 20 21void setActiveColor (uint32_t col ) 22 { 23activeColor = col ; 24 } 25CircleIndicator (); 26 27private : 28bool isActive = false; 29uint32_t activeColor ; 30int fontHeight = 0 ; 31CFont font ; 32HRESULT createFont (int height ); 33 34void onDestroy (); 35void onPaint (CDCHandle dc ); 36};