1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Formatting: Remove double-dots from comments and other strings

This commit is contained in:
reuk 2025-11-17 19:00:05 +00:00
parent 82dc6d1c7e
commit 83e5264c86
No known key found for this signature in database
209 changed files with 508 additions and 509 deletions

View file

@ -707,9 +707,9 @@ public:
if (bytesWritten + bytes >= (size_t) 0xfff00000
|| ! output->write (tempBlock.getData(), bytes))
{
// failed to write to disk, so let's try writing the header.
// Failed to write to disk, so let's try writing the header.
// If it's just run out of disk space, then if it does manage
// to write the header, we'll still have a useable file..
// to write the header, we'll still have a useable file.
writeHeader();
writeFailed = true;
return false;
@ -848,7 +848,7 @@ public:
if (map == nullptr || ! mappedSection.contains (Range<int64> (startSampleInFile, startSampleInFile + numSamples)))
{
jassertfalse; // you must make sure that the window contains all the samples you're going to attempt to read.
jassertfalse; // you must make sure that the window contains all the samples you're going to attempt to read
return false;
}
@ -870,7 +870,7 @@ public:
if (map == nullptr || ! mappedSection.contains (sample))
{
jassertfalse; // you must make sure that the window contains all the samples you're going to attempt to read.
jassertfalse; // you must make sure that the window contains all the samples you're going to attempt to read
zeromem (result, (size_t) num * sizeof (float));
return;
@ -913,7 +913,7 @@ public:
if (map == nullptr || numSamples <= 0 || ! mappedSection.contains (Range<int64> (startSampleInFile, startSampleInFile + numSamples)))
{
jassert (numSamples <= 0); // you must make sure that the window contains all the samples you're going to attempt to read.
jassert (numSamples <= 0); // you must make sure that the window contains all the samples you're going to attempt to read
for (int i = 0; i < numChannelsToRead; ++i)
results[i] = Range<float>();

View file

@ -222,7 +222,7 @@ public:
if (lengthInSamples == 0 && sampleRate > 0)
{
// the length hasn't been stored in the metadata, so we'll need to
// work it out the length the hard way, by scanning the whole file..
// work it out the length the hard way, by scanning the whole file
scanningForLength = true;
FLAC__stream_decoder_process_until_end_of_stream (decoder);
scanningForLength = false;

View file

@ -327,7 +327,7 @@ public:
{
if (ok)
{
// write a zero-length packet to show ogg that we're finished..
// write a zero-length packet to show ogg that we're finished
writeSamples (0);
ogg_stream_clear (&os);

View file

@ -1651,9 +1651,9 @@ public:
if (! output->write (tempBlock.getData(), bytes))
{
// failed to write to disk, so let's try writing the header.
// Failed to write to disk, so let's try writing the header.
// If it's just run out of disk space, then if it does manage
// to write the header, we'll still have a usable file..
// to write the header, we'll still have a usable file.
writeHeader();
writeFailed = true;
return false;
@ -1890,7 +1890,7 @@ public:
if (map == nullptr || ! mappedSection.contains (sample))
{
jassertfalse; // you must make sure that the window contains all the samples you're going to attempt to read.
jassertfalse; // you must make sure that the window contains all the samples you're going to attempt to read
zeromem (result, (size_t) num * sizeof (float));
return;
@ -1917,7 +1917,7 @@ public:
if (map == nullptr || numSamples <= 0 || ! mappedSection.contains (Range<int64> (startSampleInFile, startSampleInFile + numSamples)))
{
jassert (numSamples <= 0); // you must make sure that the window contains all the samples you're going to attempt to read.
jassert (numSamples <= 0); // you must make sure that the window contains all the samples you're going to attempt to read
for (int i = 0; i < numChannelsToRead; ++i)
results[i] = {};
@ -2090,7 +2090,7 @@ bool WavAudioFormat::replaceMetadataInFile (const File& wavFile, const StringPai
if (chunk.getSize() <= (size_t) bwavSize)
{
// the new one will fit in the space available, so write it directly..
// the new one will fit in the space available, so write it directly
auto oldSize = wavFile.getSize();
{

View file

@ -67,7 +67,7 @@ public:
This is the number of samples from the start of an edit that the
file is supposed to begin at. Seems like an obvious mistake to
only allow a file to occur in an edit once, but that's the way
it is..
it is.
@see AudioFormatReader::metadataValues, createWriterFor
*/

View file

@ -188,7 +188,7 @@ bool AudioFormatReader::read (AudioBuffer<float>* buffer,
if (! read (chans, 2, readerStartSample, numSamples, true))
return false;
// if the target's stereo and the source is mono, dupe the first channel..
// if the target's stereo and the source is mono, dupe the first channel
if (numTargetChannels > 1
&& (chans[0] == nullptr || chans[1] == nullptr)
&& (dests[0] != nullptr && dests[1] != nullptr))
@ -439,7 +439,7 @@ void MemoryMappedAudioFormatReader::touchSample (int64 sample) const noexcept
if (map != nullptr && mappedSection.contains (sample))
memoryReadDummyVariable += *(char*) sampleToPointer (sample);
else
jassertfalse; // you must make sure that the window contains all the samples you're going to attempt to read.
jassertfalse; // you must make sure that the window contains all the samples you're going to attempt to read
}
} // namespace juce

View file

@ -140,7 +140,7 @@ void SamplerVoice::renderNextBlock (AudioBuffer<float>& outputBuffer, int startS
auto alpha = (float) (sourceSamplePosition - pos);
auto invAlpha = 1.0f - alpha;
// just using a very simple linear interpolation here..
// just using a very simple linear interpolation here
float l = (inL[pos] * invAlpha + inL[pos + 1] * alpha);
float r = (inR != nullptr) ? (inR[pos] * invAlpha + inR[pos + 1] * alpha)
: l;