diff --git a/GVFG_SDK/CMakeLists.txt b/GVFG_SDK/CMakeLists.txt index e0d062e..5b082b4 100644 --- a/GVFG_SDK/CMakeLists.txt +++ b/GVFG_SDK/CMakeLists.txt @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.16) project(gvfg_sdk LANGUAGES CXX) -# Version policy: new features bump MINOR and reset PATCH; bug fixes bump PATCH. -set(GVFG_SDK_VERSION "2.1.1") +# Version policy: breaking public API changes bump MAJOR; features bump MINOR; fixes bump PATCH. +set(GVFG_SDK_VERSION "3.0.0") option(GVFG_EXPERIMENTAL_ZERO_COPY_OSD_INPLACE "UNSAFE local experiment: write OSD into driver zero-copy buffers" OFF) diff --git a/GVFG_SDK/helpers/gvfg_osd/README.md b/GVFG_SDK/helpers/gvfg_osd/README.md index f60b612..5413669 100644 --- a/GVFG_SDK/helpers/gvfg_osd/README.md +++ b/GVFG_SDK/helpers/gvfg_osd/README.md @@ -6,12 +6,12 @@ live video frames, communicate with the driver, or present a preview. The library is linked into `gvfg.dll`; it is not installed or shipped as a separate customer DLL. -The initial API supports: +The helper supports: - YUY2 and Y210 output - printable ASCII text, up to 32 characters -- Arial-preferred font with DirectWrite fallback, configurable pixel size, - RGB color, and `(x, y)` position +- caller-selected installed font family (UTF-8), configurable pixel size, + RGB color, and `(x, y)` position; missing families are rejected - one non-wrapping line, with a shared DirectWrite layout for measurement and rendering at 96 DPI - BT.709 limited-range RGB-to-YUV conversion @@ -32,14 +32,20 @@ device. Font size must be non-zero; the SDK does not impose the viewer's to `[0, frame width - text width]` and `[0, frame height - text height]` so the complete box remains visible. The internal render function returns `EINVAL` if the text box is larger than the frame. For live capture, the GPU processor -detects that case before rendering and temporarily bypasses OSD while keeping -capture and the requested OSD settings active. It retries when the settings, +detects that case before rendering and temporarily skips only the oversized slot, +keeping capture, the other slot, and the saved settings active. It retries when the settings, frame dimensions, or pixel format change. It does not shrink, truncate, or wrap the text to make it fit. -For live SDK OSD, `GpuOsdProcessor` caches the non-zero mask bounds, aligned -to complete YUV422 pixel pairs. Only this rectangle is uploaded, blended, -and read back each frame. For non-zero-copy acquisition, the backend explicitly +For live SDK OSD, each channel owns two independently configured slots. Each +slot caches its YUV and A8 mask. The shared ROI is the union of both slots' +non-zero mask bounds, aligned to complete YUV422 pixel pairs. A single compute +dispatch blends slot 0 then slot 1, followed by one readback. Slot textures are +uploaded on settings/geometry changes, not every frame. Hidden slots retain +their rasterized surfaces and textures; shader visibility bits implement show/hide +without rebuilding. If all slots are hidden, no blend or readback is performed. +Clearing a slot discards its configuration and surfaces. An oversized slot is +skipped independently, leaving capture and the other slot active. For non-zero-copy acquisition, the backend explicitly grants writable access to its currently held SDK-owned capture buffer: the GPU result replaces only that rectangle in place, retaining the original stride and size. No second full-frame copy or output-buffer resize is needed. diff --git a/GVFG_SDK/helpers/gvfg_osd/include/gvfg_osd.h b/GVFG_SDK/helpers/gvfg_osd/include/gvfg_osd.h index 4430280..79361f6 100644 --- a/GVFG_SDK/helpers/gvfg_osd/include/gvfg_osd.h +++ b/GVFG_SDK/helpers/gvfg_osd/include/gvfg_osd.h @@ -26,7 +26,7 @@ typedef enum gvfg_osd_pixel_format_t } gvfg_osd_pixel_format_t; /* - * Generates an off-line OSD surface using the Arial system font. Text is + * Generates an off-line OSD surface using the requested installed system font. Text is * restricted to printable ASCII and at most GVFG_OSD_MAX_TEXT_CHARACTERS * characters on one line without wrapping. color_rgb is 0xRRGGBB. * x/y identify the top-left of the conservative measured text box (including @@ -42,6 +42,7 @@ typedef struct gvfg_osd_config_t uint32_t height; uint32_t pixel_format; const char *text; + const char *font_family; /* UTF-8, NUL-terminated. */ uint32_t text_length; int32_t x; int32_t y; @@ -73,9 +74,13 @@ gvfg_osd_status_t gvfg_osd_measure( const char *text, uint32_t text_length, uint32_t font_size_px, + const char *font_family, uint32_t *out_width, uint32_t *out_height); +/* SDK-owned snapshot, invalidated by the next call. Serialize call/read access. */ +gvfg_osd_status_t gvfg_osd_get_fonts(uint32_t *out_count, const char *const **out_names); + gvfg_osd_status_t gvfg_osd_render( gvfg_osd_handle handle, const gvfg_osd_config_t *config, diff --git a/GVFG_SDK/helpers/gvfg_osd/src/gvfg_osd.cpp b/GVFG_SDK/helpers/gvfg_osd/src/gvfg_osd.cpp index 991cec1..43099b1 100644 --- a/GVFG_SDK/helpers/gvfg_osd/src/gvfg_osd.cpp +++ b/GVFG_SDK/helpers/gvfg_osd/src/gvfg_osd.cpp @@ -10,22 +10,38 @@ #include #include #include +#include #include +#include #include using Microsoft::WRL::ComPtr; namespace { +struct MeasuredTextLayout +{ + ComPtr layout; + uint32_t width = 0; + uint32_t height = 0; + float drawOffsetX = 0; + float drawOffsetY = 0; +}; + struct OsdContext { ComPtr wic; ComPtr d2d; ComPtr dwrite; bool ownsComInitialization = false; + std::string cachedText; + std::string cachedFontFamily; + uint32_t cachedFontSizePx = 0; + MeasuredTextLayout cachedLayout; ~OsdContext() { + cachedLayout.layout.Reset(); dwrite.Reset(); d2d.Reset(); wic.Reset(); @@ -85,25 +101,59 @@ std::wstring widenAscii(const char *text, uint32_t length) return result; } -struct MeasuredTextLayout +bool utf8FontName(const char *name, std::wstring &wide) { - ComPtr layout; - uint32_t width = 0; - uint32_t height = 0; - float drawOffsetX = 0; - float drawOffsetY = 0; -}; + if (!name || !*name) + return false; + // Bound input scans and reject malformed UTF-8 rather than substitute. + const size_t length = strnlen_s(name, 4096); + if (length == 4096) + return false; + const int count = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, + name, static_cast(length), nullptr, 0); + if (count <= 0) + return false; + wide.resize(count); + return MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, name, + static_cast(length), wide.data(), count) == count; +} gvfg_osd_status_t createTextLayout(OsdContext &context, const char *text, - uint32_t textLength, uint32_t fontSizePx, + uint32_t textLength, uint32_t fontSizePx, const char *fontFamily, MeasuredTextLayout &result) { if (!validAscii(text, textLength) || fontSizePx == 0) return GVFG_OSD_EINVAL; + std::wstring wideFamily; + if (!utf8FontName(fontFamily, wideFamily)) + return GVFG_OSD_EINVAL; + + // measure() and render() share the most recent successful layout. + // Position, color and output format do not affect text layout. + if (context.cachedLayout.layout && context.cachedFontSizePx == fontSizePx && + context.cachedFontFamily == fontFamily && + context.cachedText.size() == textLength && + context.cachedText.compare(0, textLength, text, textLength) == 0) + { + result = context.cachedLayout; + return GVFG_OSD_OK; + } + std::string cacheKey(text, textLength); + + ComPtr fonts; + HRESULT hr = context.dwrite->GetSystemFontCollection(&fonts, TRUE); + if (FAILED(hr)) + return GVFG_OSD_ERENDER; + UINT32 familyIndex = 0; + BOOL exists = FALSE; + if (FAILED(fonts->FindFamilyName(wideFamily.c_str(), &familyIndex, &exists))) + return GVFG_OSD_ERENDER; + if (!exists) + return GVFG_OSD_EINVAL; ComPtr format; - HRESULT hr = context.dwrite->CreateTextFormat( - L"Arial", nullptr, DWRITE_FONT_WEIGHT_NORMAL, + hr = context.dwrite->CreateTextFormat( + wideFamily.c_str(), fonts.Get(), DWRITE_FONT_WEIGHT_NORMAL, DWRITE_FONT_STYLE_NORMAL, DWRITE_FONT_STRETCH_NORMAL, static_cast(fontSizePx), L"en-us", &format); if (FAILED(hr) || @@ -168,6 +218,10 @@ gvfg_osd_status_t createTextLayout(OsdContext &context, const char *text, result.height = static_cast(height); result.drawOffsetX = static_cast(-left); result.drawOffsetY = static_cast(-top); + context.cachedFontFamily = fontFamily; + context.cachedText.swap(cacheKey); + context.cachedFontSizePx = fontSizePx; + context.cachedLayout = result; return GVFG_OSD_OK; } @@ -178,7 +232,7 @@ gvfg_osd_status_t renderMask(OsdContext &context, { MeasuredTextLayout textLayout; const gvfg_osd_status_t layoutStatus = createTextLayout( - context, config.text, config.text_length, config.font_size_px, textLayout); + context, config.text, config.text_length, config.font_size_px, config.font_family, textLayout); if (layoutStatus != GVFG_OSD_OK) return layoutStatus; if (textLayout.width > config.width || textLayout.height > config.height) @@ -188,14 +242,14 @@ gvfg_osd_status_t renderMask(OsdContext &context, ComPtr bitmap; HRESULT hr = context.wic->CreateBitmap(config.width, config.height, - GUID_WICPixelFormat32bppPBGRA, + GUID_WICPixelFormat8bppAlpha, WICBitmapCacheOnLoad, &bitmap); if (FAILED(hr)) return GVFG_OSD_ERENDER; D2D1_RENDER_TARGET_PROPERTIES properties = D2D1::RenderTargetProperties( D2D1_RENDER_TARGET_TYPE_SOFTWARE, - D2D1::PixelFormat(DXGI_FORMAT_B8G8R8A8_UNORM, + D2D1::PixelFormat(DXGI_FORMAT_A8_UNORM, D2D1_ALPHA_MODE_PREMULTIPLIED), 96.0f, 96.0f); ComPtr target; @@ -235,8 +289,8 @@ gvfg_osd_status_t renderMask(OsdContext &context, { const uint8_t *sourceRow = source + static_cast(y) * sourceStride; uint8_t *destinationRow = destination + static_cast(y) * destinationStride; - for (uint32_t x = 0; x < config.width; ++x) - destinationRow[x] = sourceRow[x * 4u + 3u]; + // The A8 bitmap already contains one coverage byte per pixel. + std::memcpy(destinationRow, sourceRow, config.width); } return GVFG_OSD_OK; } @@ -339,6 +393,7 @@ void gvfg_osd_destroy(gvfg_osd_handle handle) gvfg_osd_status_t gvfg_osd_measure(gvfg_osd_handle handle, const char *text, uint32_t text_length, uint32_t font_size_px, + const char *font_family, uint32_t *out_width, uint32_t *out_height) { if (out_width) @@ -352,7 +407,7 @@ gvfg_osd_status_t gvfg_osd_measure(gvfg_osd_handle handle, { MeasuredTextLayout layout; const gvfg_osd_status_t status = createTextLayout( - *static_cast(handle), text, text_length, font_size_px, layout); + *static_cast(handle), text, text_length, font_size_px, font_family, layout); if (status != GVFG_OSD_OK) return status; *out_width = layout.width; @@ -369,6 +424,79 @@ gvfg_osd_status_t gvfg_osd_measure(gvfg_osd_handle handle, } } +gvfg_osd_status_t gvfg_osd_get_fonts(uint32_t *out_count, const char *const **out_names) +{ + if (!out_count || !out_names) + return GVFG_OSD_EINVAL; + *out_count = 0; + *out_names = nullptr; + static std::mutex mutex; + static std::vector names; + static std::vector pointers; + std::lock_guard lock(mutex); + names.clear(); + pointers.clear(); + try + { + ComPtr factory; + if (FAILED(DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, __uuidof(IDWriteFactory), + reinterpret_cast(factory.GetAddressOf())))) + return GVFG_OSD_ERENDER; + ComPtr fonts; + if (FAILED(factory->GetSystemFontCollection(&fonts, TRUE))) + return GVFG_OSD_ERENDER; + wchar_t locale[LOCALE_NAME_MAX_LENGTH] = L"en-us"; + GetUserDefaultLocaleName(locale, LOCALE_NAME_MAX_LENGTH); + for (UINT32 i = 0; i < fonts->GetFontFamilyCount(); ++i) + { + ComPtr family; + ComPtr localized; + if (FAILED(fonts->GetFontFamily(i, &family)) || + FAILED(family->GetFamilyNames(&localized))) + return GVFG_OSD_ERENDER; + UINT32 index = 0; + BOOL exists = FALSE; + if (FAILED(localized->FindLocaleName(locale, &index, &exists))) + return GVFG_OSD_ERENDER; + if (!exists && FAILED(localized->FindLocaleName(L"en-us", &index, &exists))) + return GVFG_OSD_ERENDER; + if (!exists) + index = 0; + UINT32 length = 0; + if (FAILED(localized->GetStringLength(index, &length))) + return GVFG_OSD_ERENDER; + std::wstring wide(length + 1, L'\0'); + if (FAILED(localized->GetString(index, wide.data(), length + 1))) + return GVFG_OSD_ERENDER; + // Verify that the family can be used by this renderer. + ComPtr format; + if (FAILED(factory->CreateTextFormat(wide.c_str(), fonts.Get(), + DWRITE_FONT_WEIGHT_NORMAL, DWRITE_FONT_STYLE_NORMAL, + DWRITE_FONT_STRETCH_NORMAL, 48.0f, L"en-us", &format))) + continue; + const int bytes = WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, + wide.data(), static_cast(length), nullptr, 0, nullptr, nullptr); + if (bytes <= 0) + continue; + std::string name(bytes, '\0'); + if (WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, wide.data(), + static_cast(length), name.data(), bytes, nullptr, nullptr) != bytes) + return GVFG_OSD_ERENDER; + names.push_back(std::move(name)); + } + std::sort(names.begin(), names.end()); + names.erase(std::unique(names.begin(), names.end()), names.end()); + pointers.reserve(names.size()); + for (const auto &name : names) + pointers.push_back(name.c_str()); + *out_count = static_cast(pointers.size()); + *out_names = pointers.empty() ? nullptr : pointers.data(); + return GVFG_OSD_OK; + } + catch (const std::bad_alloc &) { return GVFG_OSD_ENOMEM; } + catch (...) { return GVFG_OSD_ERENDER; } +} + gvfg_osd_status_t gvfg_osd_render(gvfg_osd_handle handle, const gvfg_osd_config_t *config, const gvfg_osd_output_t *output) diff --git a/GVFG_SDK/helpers/gvfg_playback/CMakeLists.txt b/GVFG_SDK/helpers/gvfg_playback/CMakeLists.txt index e46edef..ad6c0ca 100644 --- a/GVFG_SDK/helpers/gvfg_playback/CMakeLists.txt +++ b/GVFG_SDK/helpers/gvfg_playback/CMakeLists.txt @@ -5,6 +5,7 @@ add_library(gvfg_playback SHARED include/gvfg_playback.h src/gvfg_playback.cpp src/playback_timing.h + src/playback_debug.h src/signal_card.h src/signal_card.cpp src/signal_card.rc @@ -20,7 +21,8 @@ target_include_directories(gvfg_playback ${CMAKE_CURRENT_SOURCE_DIR}/../gvfg_audio_playback/src ${CMAKE_CURRENT_SOURCE_DIR}/../gvfg_preview/src ) -target_compile_definitions(gvfg_playback PRIVATE GVFG_PLAYBACK_BUILD) +target_compile_definitions(gvfg_playback PRIVATE GVFG_PLAYBACK_BUILD + GVFG_INTERNAL_DIAGNOSTICS=$,1,0>) target_link_libraries(gvfg_playback PRIVATE gvfg_audio_playback gvfg_preview user32 gdi32 comctl32) if(MSVC) target_compile_options(gvfg_playback PRIVATE /utf-8 /EHsc) diff --git a/GVFG_SDK/helpers/gvfg_playback/README.md b/GVFG_SDK/helpers/gvfg_playback/README.md index 1eabfd1..a5af65d 100644 --- a/GVFG_SDK/helpers/gvfg_playback/README.md +++ b/GVFG_SDK/helpers/gvfg_playback/README.md @@ -1,6 +1,6 @@ # Playback 維護與同步實作 -SDK 2.1.1;客戶整合從 [公開播放手冊](../../../docs/GVFG_PLAYBACK_API.md) 開始, +SDK 3.0.0;客戶整合從 [公開播放手冊](../../../docs/GVFG_PLAYBACK_API.md) 開始, 逐參數契約見 [API Reference](../../../docs/GVFG_Customer_doc/GVFG_CUSTOMER_API_REFERENCE.md)。 本文件供 SDK 維護者,說明目前實作,不作為 Customer Demo 的除錯畫面需求。 @@ -146,9 +146,11 @@ core 非同步失敗保存在 last_error,worker 暫停,後續 submit 回報 stop/reset 取消 queue,不是無損 drain。reset 沿用舊 config,音訊格式改變應明確 stop/start 新設定。 呼叫端先停止/join read producers、release token,再停止 Playback 與 Capture。 -2.0.2 stats 尾端新增 video_dropped;2.0.4 追加 sync_degraded、sync_fallbacks、audio_dropped_frames。 -getter 明確接受目前大小、2.0.2/2.0.3 大小及 2.0.0/2.0.1 原始大小, -只回填 caller 提供的範圍;不是對任意 struct_size 都相容。config 仍要求目前完整大小。 +詳細統計位於私有 `src/playback_debug.h`,不安裝到客戶套件。核心保留診斷計數與同步狀態。 +僅 Debug DLL 匯出 `gvfg_playback_debug_get_stats()`;內部工具須定義 +`GVFG_INTERNAL_DIAGNOSTICS=1` 並使用同一版私有標頭與 MSVC Debug 匯入庫。 +診斷結構不提供穩定 ABI 或舊大小相容;Release DLL 不匯出診斷查詢。 +config 仍要求目前完整的 struct_size。 公開 API/資料變更需同步標頭、匯入庫、DLL、Reference 與 Demo,避免混版。 ## 10. 既有驗證範圍 @@ -157,7 +159,7 @@ getter 明確接受目前大小、2.0.2/2.0.3 大小及 2.0.0/2.0.1 原始 既有實際 Qt Sample 測試為 CH0 1080p YUY2、48 kHz stereo PCM16、External master、120 秒, 含視窗/全螢幕切換:約 60 fps,queue 未持續增長;7166 張輸入,processed 7160、presented 7158、dropped 2。 其餘待播 frame 在 stop 時取消。 -慢速輸出模擬為 60 fps 輸入、30 ms/張輸出與 busy:300 張輸入,略過 159、呈現 134、最大 queue 8、無拒收;舊 stats guard 通過。 +慢速輸出模擬為 60 fps 輸入、30 ms/張輸出與 busy:300 張輸入,略過 159、呈現 134、最大 queue 8、無拒收。 2.0.3 的決定性模擬使用實際 Playback core,僅替換時鐘/worker 步進與輸出後端: 舊版在 audio source 慢 500 ppm 時,910.084 秒出現 buffering、video queue 32、EQUEUE_FULL。 @@ -172,7 +174,7 @@ Audio master 遇到來源較慢時仍會耗盡既有緩衝並重新緩衝,未 2.0.4 決定性 core 模擬通過:完全無音訊、延後出現、五秒斷音、五秒停影、 來源半速/兩倍速及恢復、各 master、video-only/audio-only、GPU worker 暫停且 video queue 只有兩張。 -檢查無拒收、容量不超限、影像持續消化、來源恢復後退出降級,以及兩種既有 stats 大小的尾端 guard。 +檢查無拒收、容量不超限、影像持續消化、來源恢復後退出降級。 後端模擬 reset 延遲五毫秒,驗證 reset 完成前不會餵入新 mapping。 正常 ±500 ppm 各模擬兩小時,沒有降級,video queue 最大 6~7。 diff --git a/GVFG_SDK/helpers/gvfg_playback/gvfg_playback.def b/GVFG_SDK/helpers/gvfg_playback/gvfg_playback.def index bcbc78e..1fbaf38 100644 --- a/GVFG_SDK/helpers/gvfg_playback/gvfg_playback.def +++ b/GVFG_SDK/helpers/gvfg_playback/gvfg_playback.def @@ -13,7 +13,6 @@ EXPORTS gvfg_playback_reset_timeline gvfg_playback_stop gvfg_playback_destroy - gvfg_playback_get_stats gvfg_playback_get_preview_info gvfg_playback_get_preview_stats gvfg_playback_get_delivery_stats diff --git a/GVFG_SDK/helpers/gvfg_playback/include/gvfg_playback.h b/GVFG_SDK/helpers/gvfg_playback/include/gvfg_playback.h index 52f16e5..615c12e 100644 --- a/GVFG_SDK/helpers/gvfg_playback/include/gvfg_playback.h +++ b/GVFG_SDK/helpers/gvfg_playback/include/gvfg_playback.h @@ -59,30 +59,6 @@ typedef struct { gvfg_preview_frame_t image; uint64_t timestamp_ns; /* Common monotonic delivery clock, NOT UTC. */ } gvfg_playback_video_frame_t; -typedef struct { - uint32_t struct_size; - int running; - int buffering; - gvfg_playback_status_t last_error; - uint64_t video_submitted; - uint64_t video_processed; /* Includes hidden frames and counted late/skipped previews. */ - uint64_t video_presented; - uint64_t audio_submitted; - uint64_t queue_rejections; - uint64_t rebuffer_count; - uint64_t video_queue_bytes; - uint32_t video_queue_frames; - double audio_queue_ms; - uint64_t video_timestamp_ns; - uint64_t audio_timestamp_ns; /* Estimated output position, NOT acoustic time. */ - int64_t av_difference_ns; /* audio - video; valid only with both clocks. */ - double audio_rate_ratio; - uint64_t video_dropped; /* Late or GPU-busy preview frames; never audio/recording loss. */ - int sync_degraded; /* Independent best-effort playback; capture may continue. */ - uint64_t sync_fallbacks; - uint64_t audio_dropped_frames; /* PCM frames discarded from the core queue, not device padding. */ -} gvfg_playback_stats_t; - GVFG_PLAYBACK_API void gvfg_playback_default_config(gvfg_playback_config_t *config); GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_create(gvfg_playback *out); /* A null HWND hides video while preserving its timeline. Attach on HWND thread. */ @@ -127,7 +103,6 @@ GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_set_sync_enabled(gvfg_pla GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_reset_timeline(gvfg_playback p); GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_stop(gvfg_playback p); GVFG_PLAYBACK_API void gvfg_playback_destroy(gvfg_playback p); -GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_get_stats(gvfg_playback p, gvfg_playback_stats_t *stats); GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_get_preview_info(gvfg_playback p, gvfg_preview_info_t *info); GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_get_preview_stats(gvfg_playback p, gvfg_preview_stats_t *stats); GVFG_PLAYBACK_API gvfg_playback_status_t gvfg_playback_get_delivery_stats(gvfg_playback p, gvfg_preview_delivery_stats_t *stats); diff --git a/GVFG_SDK/helpers/gvfg_playback/src/gvfg_playback.cpp b/GVFG_SDK/helpers/gvfg_playback/src/gvfg_playback.cpp index 3759071..a3e43d6 100644 --- a/GVFG_SDK/helpers/gvfg_playback/src/gvfg_playback.cpp +++ b/GVFG_SDK/helpers/gvfg_playback/src/gvfg_playback.cpp @@ -2,6 +2,7 @@ #include "audio_output_internal.h" #include "preview_output_internal.h" #include "playback_timing.h" +#include "playback_debug.h" #include "signal_card.h" #include #include @@ -9,8 +10,6 @@ #include #include #include -#include -#include #include #include #include @@ -49,7 +48,7 @@ struct gvfg_playback_t { gvfg_preview_handle preview = nullptr; gvfg_audio_player audio = nullptr; gvfg_playback_config_t config{}; - gvfg_playback_stats_t stats{}; + gvfg_playback_debug_stats_t stats{}; std::deque