Move the file loading API to const char*
This commit is contained in:
parent
2e6a9454be
commit
24d460adff
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ sfizz_synth_t* sfizz_create_synth()
|
||||||
return reinterpret_cast<sfizz_synth_t*>(new sfz::Synth());
|
return reinterpret_cast<sfizz_synth_t*>(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<sfz::Synth*>(synth);
|
auto self = reinterpret_cast<sfz::Synth*>(synth);
|
||||||
return self->loadSfzFile(path);
|
return self->loadSfzFile(path);
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ void sfizz_free(sfizz_synth_t* synth);
|
||||||
* @return true when file loading went OK.
|
* @return true when file loading went OK.
|
||||||
* @return false if some error occured while loading.
|
* @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.
|
* @brief Returns the number of regions in the currently loaded SFZ file.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue