From 6e7a3248ee1c6a5d930120ad14a2b469f151ed5f Mon Sep 17 00:00:00 2001 From: Jasmin Abou Aldan Date: Thu, 26 Mar 2026 13:55:03 +0100 Subject: [PATCH] Fix Xcode 26 compatibility: Replace NULL with nullptr in SampleOscillator.h NULL is not guaranteed in stricter Xcode 26 headers. Use C++ nullptr keyword instead. --- Sources/CDunneAudioKit/DunneCore/Sampler/SampleOscillator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/CDunneAudioKit/DunneCore/Sampler/SampleOscillator.h b/Sources/CDunneAudioKit/DunneCore/Sampler/SampleOscillator.h index e442b2e..42e2306 100644 --- a/Sources/CDunneAudioKit/DunneCore/Sampler/SampleOscillator.h +++ b/Sources/CDunneAudioKit/DunneCore/Sampler/SampleOscillator.h @@ -20,7 +20,7 @@ namespace DunneCore // return true if we run out of samples inline bool getSample(SampleBuffer *sampleBuffer, int sampleCount, float *output, float gain) { - if (sampleBuffer == NULL || indexPoint > sampleBuffer->endPoint) return true; + if (sampleBuffer == nullptr || indexPoint > sampleBuffer->endPoint) return true; *output = sampleBuffer->interp(indexPoint, gain); indexPoint += multiplier * increment; @@ -35,7 +35,7 @@ namespace DunneCore // return true if we run out of samples inline bool getSamplePair(SampleBuffer *sampleBuffer, int sampleCount, float *leftOutput, float *rightOutput, float gain) { - if (sampleBuffer == NULL || indexPoint > sampleBuffer->endPoint) return true; + if (sampleBuffer == nullptr || indexPoint > sampleBuffer->endPoint) return true; sampleBuffer->interp(indexPoint, leftOutput, rightOutput, gain); indexPoint += multiplier * increment;