46 return looping ? nextPlayPos % reader->lengthInSamples
57 const int64 start = nextPlayPos;
77 (
int)
newEnd, 0,
true,
true);
86 reader->lengthInSamples - start);
void clear() noexcept
Clears all the samples in all channels and marks the buffer as cleared.
Type jlimit(Type lowerLimit, Type upperLimit, Type valueToConstrain) noexcept
Constrains a value to keep it within a given range.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
long long int64
A platform-independent 64-bit integer type.
Used by AudioSource::getNextAudioBlock().
int numSamples
The number of samples in the buffer which the callback is expected to fill with data.
AudioBuffer< float > * buffer
The destination buffer to fill with audio data.
int startSample
The first sample in the buffer from which the callback is expected to write data.