mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-19 03:06:37 +02:00
add sound tools
This commit is contained in:
@ -10,9 +10,13 @@
|
||||
#include <mm/services/sound_service.hpp>
|
||||
#include <mm/services/opengl_renderer.hpp>
|
||||
#include <mm/services/imgui_s.hpp>
|
||||
#include <mm/services/imgui_menu_bar.hpp>
|
||||
#include <mm/services/engine_tools.hpp>
|
||||
|
||||
#include <mm/opengl/render_tasks/imgui.hpp>
|
||||
|
||||
#include <mm/services/sound_tools.hpp>
|
||||
|
||||
#include <mm/imgui/sound_info.hpp>
|
||||
#include <mm/imgui/sound_pref.hpp>
|
||||
#include <mm/imgui/widgets/soloud.hpp>
|
||||
@ -61,9 +65,6 @@ class ImGuiSpeechy : public MM::Services::Service {
|
||||
"testwindow"_hs,
|
||||
"testwindow",
|
||||
[this](MM::Engine& engine) {
|
||||
MM::ImGuiSoundInfo(engine);
|
||||
MM::ImGuiSoundPref(engine);
|
||||
|
||||
renderImGui(engine);
|
||||
}
|
||||
}};
|
||||
@ -149,6 +150,15 @@ TEST(imgui_sound, basic) {
|
||||
engine.addService<MM::Services::ImGuiService>();
|
||||
ASSERT_TRUE(engine.enableService<MM::Services::ImGuiService>());
|
||||
|
||||
engine.addService<MM::Services::ImGuiMenuBar>();
|
||||
ASSERT_TRUE(engine.enableService<MM::Services::ImGuiMenuBar>());
|
||||
|
||||
engine.addService<MM::Services::ImGuiEngineTools>();
|
||||
ASSERT_TRUE(engine.enableService<MM::Services::ImGuiEngineTools>());
|
||||
|
||||
engine.addService<MM::Services::ImGuiSoundTools>();
|
||||
ASSERT_TRUE(engine.enableService<MM::Services::ImGuiSoundTools>());
|
||||
|
||||
auto& rs = engine.addService<MM::Services::OpenGLRenderer>();
|
||||
ASSERT_TRUE(engine.enableService<MM::Services::OpenGLRenderer>());
|
||||
|
||||
|
Reference in New Issue
Block a user