Skip to content

Commit 3a73eaa

Browse files
authored
Merge pull request #29 from jabou/fix/xcode26-nullptr-sampleoscillator
2 parents 4f328ae + 6e7a324 commit 3a73eaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/CDunneAudioKit/DunneCore/Sampler/SampleOscillator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace DunneCore
2020
// return true if we run out of samples
2121
inline bool getSample(SampleBuffer *sampleBuffer, int sampleCount, float *output, float gain)
2222
{
23-
if (sampleBuffer == NULL || indexPoint > sampleBuffer->endPoint) return true;
23+
if (sampleBuffer == nullptr || indexPoint > sampleBuffer->endPoint) return true;
2424
*output = sampleBuffer->interp(indexPoint, gain);
2525

2626
indexPoint += multiplier * increment;
@@ -35,7 +35,7 @@ namespace DunneCore
3535
// return true if we run out of samples
3636
inline bool getSamplePair(SampleBuffer *sampleBuffer, int sampleCount, float *leftOutput, float *rightOutput, float gain)
3737
{
38-
if (sampleBuffer == NULL || indexPoint > sampleBuffer->endPoint) return true;
38+
if (sampleBuffer == nullptr || indexPoint > sampleBuffer->endPoint) return true;
3939
sampleBuffer->interp(indexPoint, leftOutput, rightOutput, gain);
4040

4141
indexPoint += multiplier * increment;

0 commit comments

Comments
 (0)