Posted: 18 Oct 2018, 17:11
sdkAddSettingsLineString() takes the address of a pointer.
When the settings line string is changed in the settings panel, Usine allocates memory and writes a Unicode representation of the string to that memory, then modifies the pointer to point to the Unicode string.
However, there is no proper way in the SDK to set the setting string in a User Module.
It is possible to alter the string up to the size allocated by Usine, but this is really a hack, and you cannot assign a longer string.
I thought that sdkGetSettingValue() and sdkSetSettingValue() could be used to do this, but sdkGetSettingValue() always causes Usine to crash.
Can we please have a method to set the setting line string in the SDK ?
For example, something like sdkSetSettingsLineString(string).
For previous discussion on this matter, see
https://sensomusic.org/forums/viewtopic.php?id=5999
Thanks,
Simon.
When the settings line string is changed in the settings panel, Usine allocates memory and writes a Unicode representation of the string to that memory, then modifies the pointer to point to the Unicode string.
However, there is no proper way in the SDK to set the setting string in a User Module.
It is possible to alter the string up to the size allocated by Usine, but this is really a hack, and you cannot assign a longer string.
I thought that sdkGetSettingValue() and sdkSetSettingValue() could be used to do this, but sdkGetSettingValue() always causes Usine to crash.
Can we please have a method to set the setting line string in the SDK ?
For example, something like sdkSetSettingsLineString(string).
For previous discussion on this matter, see
https://sensomusic.org/forums/viewtopic.php?id=5999
Thanks,
Simon.