mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 20:37:33 +00:00
Remove unused constants and clean up stale comments
- Remove TOP_VFO_BTN_H and VFO_BTN_W (unused local consts, compiler warned) - Consolidate duplicate comment block in AudioOutput.WriteDouble - Clean up AudioOutput callback comment header Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-9
@@ -186,10 +186,7 @@ const
|
|||||||
PA_CONTINUE = LongInt(0);
|
PA_CONTINUE = LongInt(0);
|
||||||
PA_NO_DEV = TPaDeviceIndex(-1);
|
PA_NO_DEV = TPaDeviceIndex(-1);
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// Callback modeled after pa_out_cb from piHPSDR/portaudio.c
|
||||||
// Callback — точная копия pa_out_cb из оригинала
|
|
||||||
// ---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
function PaOutCallback(inputBuffer, outputBuffer: Pointer;
|
function PaOutCallback(inputBuffer, outputBuffer: Pointer;
|
||||||
framesPerBuffer: LongWord;
|
framesPerBuffer: LongWord;
|
||||||
timeInfo: Pointer;
|
timeInfo: Pointer;
|
||||||
@@ -567,11 +564,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// WriteDouble — modeled after audio_write() from piHPSDR/portaudio.c
|
||||||
// WriteDouble — точная копия audio_write() из оригинала
|
|
||||||
// ---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// WriteDouble — точная копия audio_write() из piHPSDR/portaudio.c
|
|
||||||
// Вызывается per-sample из Write. Мьютекс держится весь цикл в Write.
|
// Вызывается per-sample из Write. Мьютекс держится весь цикл в Write.
|
||||||
procedure TAudioOutput.WriteDouble(Left, Right: Double);
|
procedure TAudioOutput.WriteDouble(Left, Right: Double);
|
||||||
var
|
var
|
||||||
|
|||||||
@@ -1420,7 +1420,6 @@ const
|
|||||||
LEFT_W = 232;
|
LEFT_W = 232;
|
||||||
TOP_VFO_W = 244;
|
TOP_VFO_W = 244;
|
||||||
TOP_VFO_FREQ_H = 47;
|
TOP_VFO_FREQ_H = 47;
|
||||||
TOP_VFO_BTN_H = 14;
|
|
||||||
var
|
var
|
||||||
i, X, Y, W: Integer;
|
i, X, Y, W: Integer;
|
||||||
B: TFlatButton;
|
B: TFlatButton;
|
||||||
@@ -2135,7 +2134,6 @@ const
|
|||||||
MARGIN = 4;
|
MARGIN = 4;
|
||||||
TOP_OFFSET = 2;
|
TOP_OFFSET = 2;
|
||||||
TOP_VFO_FREQ_H = 47;
|
TOP_VFO_FREQ_H = 47;
|
||||||
VFO_BTN_W = 20;
|
|
||||||
VFO_BTN_FREQ_GAP = 4;
|
VFO_BTN_FREQ_GAP = 4;
|
||||||
VFO_FREQ_LEFT_PAD = 2;
|
VFO_FREQ_LEFT_PAD = 2;
|
||||||
VFO_FREQ_RIGHT_PAD = 8;
|
VFO_FREQ_RIGHT_PAD = 8;
|
||||||
|
|||||||
Reference in New Issue
Block a user