Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 13 files). Show all
Unified · Split
| @@ -113,6 +113,9 @@ void ScriptEngine::run() { · 112 unmodified lines | ||
| 113 | 113 | QScriptValue soundMetaObject = engine.newQMetaObject(&Sound::staticMetaObject, soundConstructorValue); |
| 114 | 114 | engine.globalObject().setProperty("Sound", soundMetaObject); |
| 115 | 115 | |
| 116 | + QScriptValue audioScriptingInterfaceValue = engine.newQObject(&_audioScriptingInterface); | |
| 117 | + engine.globalObject().setProperty("Audio", audioScriptingInterfaceValue); | |
| 118 | + | |
| 116 | 119 | if (_controllerScriptingInterface) { |
| 117 | 120 | QScriptValue controllerScripterValue = engine.newQObject(_controllerScriptingInterface); |
| 118 | 121 | engine.globalObject().setProperty("Controller", controllerScripterValue); |