Release SDK 0.2.1 with unplug-safe zero-copy handling

Compared with SDK 0.2.0 (3cd7fbbb):

- Handle the zero-copy release race where the driver clears frame ownership before the SDK receives the unplug event. Wait up to 100 ms only after ERROR_BAD_COMMAND, accept the release as revoked only after a confirmed disconnect, and preserve all other release failures.

- Apply the same confirmed-unplug handling to normal frame release and pending-frame teardown without adding latency to successful per-frame releases.

- Add Debug-only audio event, frame, and byte counters across the Driver-to-SDK, SDK-to-APP, and APP-to-output boundaries, and show the concise totals in the internal diagnostic sample.

- Rename Release and Debug customer packages to the requested GVFG_Sample labels, use minute-resolution timestamps, and derive the package suffix from the root CMake project version.

- Bump the standalone SDK version to 0.2.1 and synchronize the public API examples and internal build guide.

Validation: git diff --check and focused source/diff inspection passed. No build, package generation, runtime capture, unplug stress test, or hardware validation was run.
This commit is contained in:
Mark.lin
2026-09-10 11:36:17 +08:00
parent 3cd7fbbb3f
commit cdd2f8a75b
14 changed files with 111 additions and 19 deletions
+8 -2
View File
@@ -14,9 +14,15 @@ if "%~1"=="" (
set "OUTPUT_DIR=%~1"
)
for /f %%I in ('powershell -NoProfile -ExecutionPolicy Bypass -Command "Get-Date -Format yyyyMMdd_HHmmss"') do set "STAMP=%%I"
for /f %%I in ('powershell -NoProfile -ExecutionPolicy Bypass -Command "Get-Date -Format yyyyMMdd_HHmm"') do set "STAMP=%%I"
for /f "tokens=3" %%I in ('findstr /C:"project(gvfg_standalone VERSION" "%PROJECT_DIR%\CMakeLists.txt"') do set "PACKAGE_VERSION=%%I"
set "PACKAGE_NAME=GVFG_Qt_Preview_Release_%STAMP%"
if not defined PACKAGE_VERSION (
echo [package] ERROR: Project version not found in CMakeLists.txt.
goto fail
)
set "PACKAGE_NAME=GVFG_Sample_Release_%STAMP%_%PACKAGE_VERSION%"
set "ZIP_PATH=%OUTPUT_DIR%\%PACKAGE_NAME%.zip"
set "STAGE_ROOT=%TEMP%\%PACKAGE_NAME%_%RANDOM%"
set "STAGE_DIR=%STAGE_ROOT%\%PACKAGE_NAME%"