Hooks need to be exported
@@ -387,7 +387,8 @@ PLUGIN_method(playNote, ctx, vm) {
DOME_log(ctx, "Octave: %i - Note: %i - Frequency: %f\n", octave, pitch, synth.frequency);
}
-DOME_Result PLUGIN_onInit(DOME_getAPIFunction DOME_getApi, DOME_Context ctx) {
+DOME_EXPORTED DOME_Result
+PLUGIN_onInit(DOME_getAPIFunction DOME_getApi, DOME_Context ctx) {
api = DOME_getApi(API_DOME, DOME_API_VERSION);
audio = DOME_getApi(API_AUDIO, DOME_API_VERSION);
wren = DOME_getApi(API_WREN, WREN_API_VERSION);
@@ -419,6 +420,7 @@ DOME_Result PLUGIN_onInit(DOME_getAPIFunction DOME_getApi, DOME_Context ctx) {
}
-DOME_Result PLUGIN_preUpdate(DOME_Context ctx) {
+DOME_EXPORTED DOME_Result
+PLUGIN_preUpdate(DOME_Context ctx) {
return DOME_RESULT_SUCCESS;
}
