From 592138845c621afac2dc30d9822cec843113fdb1 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Mon, 7 Feb 2022 22:43:37 +0100 Subject: [PATCH] little sound json thingy --- framework/imgui/test/CMakeLists.txt | 1 + framework/imgui/test/sound_test.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/framework/imgui/test/CMakeLists.txt b/framework/imgui/test/CMakeLists.txt index e16713a..8ecd992 100644 --- a/framework/imgui/test/CMakeLists.txt +++ b/framework/imgui/test/CMakeLists.txt @@ -85,6 +85,7 @@ target_link_libraries(imgui_sound_test imgui_service imgui_render_task imgui_sound + soloud_json imgui_tools gtest_main ) diff --git a/framework/imgui/test/sound_test.cpp b/framework/imgui/test/sound_test.cpp index 34ae058..33d6d45 100644 --- a/framework/imgui/test/sound_test.cpp +++ b/framework/imgui/test/sound_test.cpp @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -27,6 +28,10 @@ #include #include +#include + +#include + const char* argv0; using namespace entt::literals; @@ -121,6 +126,12 @@ class ImGuiSpeechy : public MM::Services::Service { MM::ImGuiWidgets::SoLoudFilterLiveParamsFancy("filter fancy freeverb", &sound.engine, &freeverb, 2); } ImGui::End(); + + if (ImGui::Begin("Sfxr json")) { + std::string json_text = nlohmann::json(sfxr).dump(2); + ImGui::InputTextMultiline("json", &json_text); + } + ImGui::End(); } };