diff --git a/lv2/sfizz.c b/lv2/sfizz.c index 44d9077a8..0ebe5313d 100644 --- a/lv2/sfizz.c +++ b/lv2/sfizz.c @@ -1430,7 +1430,7 @@ work(LV2_Handle instance, else if (atom->type == self->sfizz_scala_file_uri) { const char *scala_file_path = LV2_ATOM_BODY_CONST(atom); - if (sfizz_lv2_load_scala_file(self->synth, scala_file_path)) { + if (sfizz_lv2_load_scala_file(self, scala_file_path)) { lv2_log_note(&self->logger, "[sfizz] Scala file loaded: %s\n", scala_file_path); } else { lv2_log_error(&self->logger, @@ -1493,7 +1493,7 @@ work(LV2_Handle instance, lv2_log_note(&self->logger, "[sfizz] Scala file %s seems to have been updated, reloading\n", self->scala_file_path); - if (sfizz_lv2_load_scala_file(self->synth, self->scala_file_path)) { + if (sfizz_lv2_load_scala_file(self, self->scala_file_path)) { lv2_log_note(&self->logger, "[sfizz] Scala file loaded: %s\n", self->scala_file_path); } else { lv2_log_error(&self->logger,