From 24d460adffcd07e46babb12f22bef82cabac255d Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Wed, 20 Nov 2019 00:30:33 +0100 Subject: [PATCH] Move the file loading API to const char* --- sfizz/sfizz.cpp | 2 +- sfizz/sfizz.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sfizz/sfizz.cpp b/sfizz/sfizz.cpp index bf672b41..7aaa5ce5 100644 --- a/sfizz/sfizz.cpp +++ b/sfizz/sfizz.cpp @@ -33,7 +33,7 @@ sfizz_synth_t* sfizz_create_synth() return reinterpret_cast(new sfz::Synth()); } -bool sfizz_load_file(sfizz_synth_t* synth, char* path) +bool sfizz_load_file(sfizz_synth_t* synth, const char* path) { auto self = reinterpret_cast(synth); return self->loadSfzFile(path); diff --git a/sfizz/sfizz.h b/sfizz/sfizz.h index d11efaef..d11b6233 100644 --- a/sfizz/sfizz.h +++ b/sfizz/sfizz.h @@ -57,7 +57,7 @@ void sfizz_free(sfizz_synth_t* synth); * @return true when file loading went OK. * @return false if some error occured while loading. */ -bool sfizz_load_file(sfizz_synth_t* synth, char* path); +bool sfizz_load_file(sfizz_synth_t* synth, const char* path); /** * @brief Returns the number of regions in the currently loaded SFZ file.