MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / LoadClassAudioManager

Function LoadClassAudioManager

src/Core/Bindings/obe/Audio/Audio.cpp:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 { "Stopped", obe::Audio::SoundStatus::Stopped } });
25 }
26 void LoadClassAudioManager(sol::state_view state)
27 {
28 sol::table AudioNamespace = state["obe"]["Audio"].get<sol::table>();
29 sol::usertype<obe::Audio::AudioManager> bindAudioManager
30 = AudioNamespace.new_usertype<obe::Audio::AudioManager>("AudioManager",
31 sol::call_constructor, sol::constructors<obe::Audio::AudioManager()>());
32 bindAudioManager["load"] = sol::overload(
33 [](obe::Audio::AudioManager* self, const obe::System::Path& path)
34 -> obe::Audio::Sound { return self->load(path); },
35 [](obe::Audio::AudioManager* self, const obe::System::Path& path,
36 obe::Audio::LoadPolicy loadPolicy) -> obe::Audio::Sound {
37 return self->load(path, loadPolicy);
38 });
39 }
40 void LoadClassSound(sol::state_view state)
41 {
42 sol::table AudioNamespace = state["obe"]["Audio"].get<sol::table>();

Callers

nothing calls this directly

Calls 2

overloadFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected