addTrackSfzString static method
Implementation
static Future<int> addTrackSfzString(
String sampleRoot, String sfzContent, String? tuningString) {
final sampleRootUtf8Ptr = sampleRoot.toNativeUtf8();
final sfzContentUtf8Ptr = sfzContent.toNativeUtf8();
final tuningStringUtf8Ptr =
tuningString?.toNativeUtf8() ?? Pointer.fromAddress(0);
return singleResponseFuture<int>((port) => nAddTrackSfzString(
sampleRootUtf8Ptr,
sfzContentUtf8Ptr,
tuningStringUtf8Ptr,
port.nativePort));
}