diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-03-05 10:50:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-05 10:50:35 +0100 |
commit | b3f43496a503096e52d6e3f7522a24b251e7bc98 (patch) | |
tree | 6fbafc2f88cc50525a261581112f25abf9887498 /platform/javascript/os_javascript.cpp | |
parent | 6a6aab498eab5d35621079aa6b0548e74e00dcb6 (diff) | |
parent | d780d774aa4630302fddbef0516e3f96beacd7b5 (diff) |
Merge pull request #17256 from marcelofg55/drivers_funcs
Clean and expose get_audio/video_driver_* funcs on OS class
Diffstat (limited to 'platform/javascript/os_javascript.cpp')
-rw-r--r-- | platform/javascript/os_javascript.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/javascript/os_javascript.cpp b/platform/javascript/os_javascript.cpp index e226ab6332..5ae232d8f3 100644 --- a/platform/javascript/os_javascript.cpp +++ b/platform/javascript/os_javascript.cpp @@ -447,7 +447,6 @@ Error OS_JavaScript::initialize(const VideoMode &p_desired, int p_video_driver, print_line("Init Audio"); - AudioDriverManager::add_driver(&audio_driver_javascript); AudioDriverManager::initialize(p_audio_driver); RasterizerGLES3::register_config(); @@ -1012,6 +1011,8 @@ OS_JavaScript::OS_JavaScript(const char *p_execpath, GetUserDataDirFunc p_get_us Vector<Logger *> loggers; loggers.push_back(memnew(StdLogger)); _set_logger(memnew(CompositeLogger(loggers))); + + AudioDriverManager::add_driver(&audio_driver_javascript); } OS_JavaScript::~OS_JavaScript() { |