1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Formatting

This commit is contained in:
Tom Poole 2023-09-29 16:41:53 +01:00
parent ff0cb4ad5b
commit 4153d59e39
279 changed files with 1281 additions and 1281 deletions

View file

@ -49,7 +49,7 @@ int AudioCDReader::getCDDBId()
const int numTracks = getNumTracks();
for (int i = 0; i < numTracks; ++i)
for (int offset = (trackStartSamples.getUnchecked(i) + 88200) / 44100; offset > 0; offset /= 10)
for (int offset = (trackStartSamples.getUnchecked (i) + 88200) / 44100; offset > 0; offset /= 10)
checksum += offset % 10;
const int length = (trackStartSamples.getLast() - trackStartSamples.getFirst()) / 44100;

View file

@ -1000,7 +1000,7 @@ AudioDeviceSelectorComponent::AudioDeviceSelectorComponent (AudioDeviceManager&
deviceTypeDropDown = std::make_unique<ComboBox>();
for (int i = 0; i < types.size(); ++i)
deviceTypeDropDown->addItem (types.getUnchecked(i)->getTypeName(), i + 1);
deviceTypeDropDown->addItem (types.getUnchecked (i)->getTypeName(), i + 1);
addAndMakeVisible (deviceTypeDropDown.get());
deviceTypeDropDown->onChange = [this] { updateDeviceType(); };

View file

@ -672,7 +672,7 @@ bool AudioThumbnail::loadFrom (InputStream& rawInput)
for (int i = 0; i < numThumbnailSamples; ++i)
for (int chan = 0; chan < numChannels; ++chan)
channels.getUnchecked(chan)->getData(i)->read (input);
channels.getUnchecked (chan)->getData (i)->read (input);
return true;
}
@ -681,7 +681,7 @@ void AudioThumbnail::saveTo (OutputStream& output) const
{
const ScopedLock sl (lock);
const int numThumbnailSamples = channels.size() == 0 ? 0 : channels.getUnchecked(0)->getSize();
const int numThumbnailSamples = channels.size() == 0 ? 0 : channels.getUnchecked (0)->getSize();
output.write ("jatm", 4);
output.writeInt (samplesPerThumbSample);
@ -695,7 +695,7 @@ void AudioThumbnail::saveTo (OutputStream& output) const
for (int i = 0; i < numThumbnailSamples; ++i)
for (int chan = 0; chan < numChannels; ++chan)
channels.getUnchecked(chan)->getData(i)->write (output);
channels.getUnchecked (chan)->getData (i)->write (output);
}
//==============================================================================

View file

@ -74,8 +74,8 @@ AudioThumbnailCache::~AudioThumbnailCache()
AudioThumbnailCache::ThumbnailCacheEntry* AudioThumbnailCache::findThumbFor (const int64 hash) const
{
for (int i = thumbs.size(); --i >= 0;)
if (thumbs.getUnchecked(i)->hash == hash)
return thumbs.getUnchecked(i);
if (thumbs.getUnchecked (i)->hash == hash)
return thumbs.getUnchecked (i);
return nullptr;
}
@ -87,7 +87,7 @@ int AudioThumbnailCache::findOldestThumb() const
for (int i = thumbs.size(); --i >= 0;)
{
const ThumbnailCacheEntry* const te = thumbs.getUnchecked(i);
const ThumbnailCacheEntry* const te = thumbs.getUnchecked (i);
if (te->lastUsed < oldestTime)
{
@ -150,7 +150,7 @@ void AudioThumbnailCache::removeThumb (const int64 hashCode)
const ScopedLock sl (lock);
for (int i = thumbs.size(); --i >= 0;)
if (thumbs.getUnchecked(i)->hash == hashCode)
if (thumbs.getUnchecked (i)->hash == hashCode)
thumbs.remove (i);
}
@ -182,7 +182,7 @@ void AudioThumbnailCache::writeToStream (OutputStream& out)
out.writeInt (thumbs.size());
for (int i = 0; i < thumbs.size(); ++i)
thumbs.getUnchecked(i)->write (out);
thumbs.getUnchecked (i)->write (out);
}
void AudioThumbnailCache::saveNewlyFinishedThumbnail (const AudioThumbnailBase&, int64)

View file

@ -124,7 +124,7 @@ void AudioVisualiserComponent::pushBuffer (const float* const* d, int numChannel
numChannels = jmin (numChannels, channels.size());
for (int i = 0; i < numChannels; ++i)
channels.getUnchecked(i)->pushSamples (d[i], num);
channels.getUnchecked (i)->pushSamples (d[i], num);
}
void AudioVisualiserComponent::pushBuffer (const AudioBuffer<float>& buffer)
@ -139,7 +139,7 @@ void AudioVisualiserComponent::pushBuffer (const AudioSourceChannelInfo& buffer)
auto numChannels = jmin (buffer.buffer->getNumChannels(), channels.size());
for (int i = 0; i < numChannels; ++i)
channels.getUnchecked(i)->pushSamples (buffer.buffer->getReadPointer (i, buffer.startSample),
channels.getUnchecked (i)->pushSamples (buffer.buffer->getReadPointer (i, buffer.startSample),
buffer.numSamples);
}
@ -148,7 +148,7 @@ void AudioVisualiserComponent::pushSample (const float* d, int numChannels)
numChannels = jmin (numChannels, channels.size());
for (int i = 0; i < numChannels; ++i)
channels.getUnchecked(i)->pushSample (d[i]);
channels.getUnchecked (i)->pushSample (d[i]);
}
void AudioVisualiserComponent::setSamplesPerBlock (int newSamplesPerPixel) noexcept

View file

@ -259,7 +259,7 @@ bool MidiKeyboardComponent::keyStateChanged (bool /*isKeyDown*/)
{
auto note = 12 * keyMappingOctave + keyPressNotes.getUnchecked (i);
if (keyPresses.getReference(i).isCurrentlyDown())
if (keyPresses.getReference (i).isCurrentlyDown())
{
if (! keysPressed[note])
{

View file

@ -90,7 +90,7 @@ namespace CDReaderHelpers
volumes.findChildFiles (cds, File::findDirectories, false);
for (int i = cds.size(); --i >= 0;)
if (! cds.getReference(i).getChildFile (".TOC.plist").exists())
if (! cds.getReference (i).getChildFile (".TOC.plist").exists())
cds.remove (i);
}
@ -122,7 +122,7 @@ StringArray AudioCDReader::getAvailableCDNames()
StringArray names;
for (int i = 0; i < cds.size(); ++i)
names.add (cds.getReference(i).getFileName());
names.add (cds.getReference (i).getFileName());
return names;
}