This commit is contained in:
2025-12-24 23:16:10 +01:00
parent c085cb52c5
commit a3fd1a5462
3 changed files with 7 additions and 0 deletions
+2
View File
@@ -12,6 +12,7 @@ int lua_set_rds_program_defaults(lua_State *localL) {
unload_refs[0] = 0;
set_rds_defaults(mod->enc, mod->enc->program);
lua_call_function("on_init");
lua_call_function("on_state");
return 0;
}
@@ -25,6 +26,7 @@ int lua_reset_rds(lua_State *localL) {
encoder_loadFromFile(mod->enc);
for(int i = 0; i < PROGRAMS; i++) reset_rds_state(mod->enc, i);
Modulator_loadFromFile(&mod->params);
lua_call_function("on_state");
return 0;
}