From ca4a5fbb114ef59d7629b853142d9124e053cf9c Mon Sep 17 00:00:00 2001 From: mahal raskin Date: Thu, 28 Dec 2023 17:16:30 +0100 Subject: [PATCH] Reading of SFZ improved so it follows more the standard: loop_mode=no_loop will no longer loop the sample --- Sources/DunneAudioKit/Sampler+SFZ.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/DunneAudioKit/Sampler+SFZ.swift b/Sources/DunneAudioKit/Sampler+SFZ.swift index 391965d..d8f531b 100644 --- a/Sources/DunneAudioKit/Sampler+SFZ.swift +++ b/Sources/DunneAudioKit/Sampler+SFZ.swift @@ -90,7 +90,7 @@ extension SamplerData { maximumNoteNumber: Int32(highNoteNumber), minimumVelocity: Int32(lowVelocity), maximumVelocity: Int32(highVelocity), - isLooping: loopMode != "", + isLooping: loopMode != "no_loop", loopStartPoint: loopStartPoint, loopEndPoint: loopEndPoint, startPoint: 0.0,