From a54da0b832681c8567a9b5046e423fce3195b19a Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 7 Jan 2020 08:53:23 +0000 Subject: [PATCH] Fixed some more typos --- examples/BLOCKS/BlocksDrawingDemo.h | 4 ++-- examples/BLOCKS/BlocksMonitorDemo.h | 2 +- examples/GUI/ImagesDemo.h | 2 +- examples/GUI/MDIDemo.h | 2 +- examples/Utilities/TimersAndEventsDemo.h | 4 ++-- examples/Utilities/XMLandJSONDemo.h | 4 ++-- extras/AudioPluginHost/Source/UI/PluginWindow.h | 2 +- .../Source/ComponentEditor/jucer_GeneratedCode.h | 2 +- .../ProjectSaving/jucer_ProjectExport_Xcode.h | 2 +- .../Source/ProjectSaving/jucer_ProjectSaver.h | 2 +- .../analytics/juce_ButtonTracker.h | 2 +- .../buffers/juce_AudioSampleBuffer.h | 2 +- .../midi/juce_MidiKeyboardState.h | 4 ++-- .../midi/juce_MidiMessageSequence.cpp | 2 +- modules/juce_audio_basics/midi/juce_MidiRPN.h | 2 +- .../juce_audio_basics/mpe/juce_MPEInstrument.h | 2 +- modules/juce_audio_basics/mpe/juce_MPEMessages.h | 2 +- .../juce_audio_basics/mpe/juce_MPESynthesiser.h | 2 +- .../juce_audio_basics/sources/juce_AudioSource.h | 2 +- modules/juce_audio_devices/juce_audio_devices.h | 2 +- .../native/juce_android_OpenSL.cpp | 4 ++-- .../native/juce_linux_ALSA.cpp | 2 +- .../native/juce_mac_CoreAudio.cpp | 2 +- .../native/juce_win32_Midi.cpp | 4 ++-- .../codecs/juce_CoreAudioFormat.cpp | 6 +++--- .../codecs/juce_WavAudioFormat.cpp | 2 +- .../codecs/juce_WindowsMediaAudioFormat.cpp | 2 +- .../AAX/juce_AAX_Wrapper.cpp | 4 ++-- .../VST/juce_VST_Wrapper.cpp | 8 ++++---- .../VST/juce_VST_Wrapper.mm | 2 +- .../format/juce_AudioPluginFormatManager.h | 6 +++--- .../format_types/juce_VSTPluginFormat.cpp | 2 +- .../processors/juce_AudioProcessor.h | 12 ++++++------ .../processors/juce_AudioProcessorParameter.h | 2 +- .../juce_AudioProcessorParameterGroup.h | 2 +- .../scanning/juce_PluginListComponent.cpp | 2 +- .../gui/juce_AudioAppComponent.h | 2 +- modules/juce_blocks_basics/blocks/juce_Block.h | 2 +- .../blocks/juce_BlocksVersion.h | 4 ++-- .../blocks/juce_ControlButton.h | 4 ++-- .../juce_blocks_basics/blocks/juce_TouchList.h | 2 +- .../internal/juce_DepreciatedVersionReader.cpp | 2 +- .../internal/juce_MIDIDeviceDetector.cpp | 4 ++-- .../topology/juce_BlockGraph.h | 2 +- .../juce_blocks_basics/topology/juce_Topology.h | 2 +- .../juce_cryptography/encryption/juce_BlowFish.h | 6 +++--- modules/juce_dsp/containers/juce_AudioBlock.h | 2 +- modules/juce_dsp/containers/juce_SIMDRegister.h | 16 ++++++++-------- .../containers/juce_SIMDRegister_test.cpp | 2 +- modules/juce_dsp/frequency/juce_FFT.h | 2 +- modules/juce_dsp/maths/juce_Matrix.h | 2 +- modules/juce_dsp/processors/juce_LadderFilter.h | 2 +- modules/juce_dsp/processors/juce_Oscillator.h | 2 +- .../broadcasters/juce_ActionBroadcaster.cpp | 2 +- .../interprocess/juce_NetworkServiceDiscovery.h | 2 +- .../messages/juce_MessageListener.cpp | 2 +- .../juce_events/messages/juce_MessageManager.h | 8 ++++---- .../contexts/juce_GraphicsContext.h | 2 +- modules/juce_graphics/fonts/juce_Font.h | 2 +- modules/juce_graphics/fonts/juce_Typeface.h | 2 +- .../geometry/juce_AffineTransform.h | 2 +- .../juce_graphics/geometry/juce_Parallelogram.h | 2 +- modules/juce_graphics/geometry/juce_Path.h | 8 ++++---- modules/juce_graphics/images/juce_Image.h | 4 ++-- .../images/juce_ImageConvolutionKernel.h | 4 ++-- .../native/juce_win32_DirectWriteTypeLayout.cpp | 2 +- .../juce_gui_basics/buttons/juce_TextButton.h | 2 +- .../juce_gui_basics/components/juce_Component.h | 8 ++++---- .../juce_gui_basics/drawables/juce_Drawable.h | 4 ++-- .../filebrowser/juce_FileChooser.h | 2 +- .../filebrowser/juce_FilePreviewComponent.h | 2 +- modules/juce_gui_basics/layout/juce_Viewport.cpp | 2 +- .../lookandfeel/juce_LookAndFeel.cpp | 2 +- modules/juce_gui_basics/menus/juce_PopupMenu.cpp | 2 +- modules/juce_gui_basics/menus/juce_PopupMenu.h | 2 +- .../mouse/juce_ComponentDragger.h | 2 +- .../mouse/juce_DragAndDropTarget.h | 2 +- .../mouse/juce_FileDragAndDropTarget.h | 2 +- modules/juce_gui_basics/mouse/juce_MouseCursor.h | 2 +- modules/juce_gui_basics/mouse/juce_MouseEvent.h | 2 +- .../mouse/juce_MouseInputSource.h | 2 +- .../mouse/juce_TextDragAndDropTarget.h | 2 +- .../native/juce_mac_NSViewComponentPeer.mm | 2 +- .../juce_MultiChoicePropertyComponent.h | 4 ++-- .../juce_gui_basics/widgets/juce_ComboBox.cpp | 2 +- modules/juce_gui_basics/widgets/juce_Slider.h | 2 +- .../widgets/juce_TableHeaderComponent.h | 6 +++--- modules/juce_gui_basics/widgets/juce_TreeView.h | 6 +++--- .../juce_gui_basics/windows/juce_AlertWindow.cpp | 2 +- .../juce_gui_basics/windows/juce_DialogWindow.h | 4 ++-- .../windows/juce_ResizableWindow.h | 2 +- .../code_editor/juce_CodeEditorComponent.h | 2 +- .../embedding/juce_ScopedDPIAwarenessDisabler.h | 2 +- .../misc/juce_BubbleMessageComponent.h | 4 ++-- .../juce_gui_extra/misc/juce_PushNotifications.h | 6 +++--- .../native/juce_android_PushNotifications.cpp | 2 +- .../native/juce_ios_PushNotifications.cpp | 2 +- modules/juce_opengl/native/juce_OpenGL_ios.h | 2 +- modules/juce_opengl/opengl/juce_OpenGLContext.h | 4 ++-- modules/juce_osc/osc/juce_OSCAddress.h | 2 +- modules/juce_osc/osc/juce_OSCTimeTag.h | 2 +- .../marketplace/juce_OnlineUnlockForm.h | 2 +- .../native/juce_android_CameraDevice.h | 2 +- .../juce_video/native/juce_ios_CameraDevice.h | 2 +- 104 files changed, 157 insertions(+), 157 deletions(-) diff --git a/examples/BLOCKS/BlocksDrawingDemo.h b/examples/BLOCKS/BlocksDrawingDemo.h index ed454ebf91..d3539397d2 100644 --- a/examples/BLOCKS/BlocksDrawingDemo.h +++ b/examples/BLOCKS/BlocksDrawingDemo.h @@ -409,7 +409,7 @@ public: setLEDProgram (*activeBlock); } - // Make the on screen Lighpad component visible + // Make the on screen Lightpad component visible lightpadComponent.setVisible (true); infoLabel.setVisible (false); @@ -566,7 +566,7 @@ private: return; } - // If there is no ActiveLED obejct for this LED then create one, + // If there is no ActiveLED object for this LED then create one, // add it to the array, set the LED on the Block and return if (index < 0) { diff --git a/examples/BLOCKS/BlocksMonitorDemo.h b/examples/BLOCKS/BlocksMonitorDemo.h index afe45b2031..c92c0e63b2 100644 --- a/examples/BLOCKS/BlocksMonitorDemo.h +++ b/examples/BLOCKS/BlocksMonitorDemo.h @@ -95,7 +95,7 @@ public: button->removeListener (this); } - /** Called periodically to update the tooltip with inforamtion about the Block */ + /** Called periodically to update the tooltip with information about the Block */ void updateStatsAndTooltip() { // Get the battery level of this Block and inform any subclasses diff --git a/examples/GUI/ImagesDemo.h b/examples/GUI/ImagesDemo.h index 61a0e4fe99..478bf4944d 100644 --- a/examples/GUI/ImagesDemo.h +++ b/examples/GUI/ImagesDemo.h @@ -126,7 +126,7 @@ private: if (selectedFile.existsAsFile()) imagePreview.setImage (ImageCache::getFromFile (selectedFile)); - // the image cahce is a handly way to load images from files or directly from memory and + // the image cache is a handy way to load images from files or directly from memory and // will keep them hanging around for a few seconds in case they are requested elsewhere } diff --git a/examples/GUI/MDIDemo.h b/examples/GUI/MDIDemo.h index 040cebb75a..7b3c06323c 100644 --- a/examples/GUI/MDIDemo.h +++ b/examples/GUI/MDIDemo.h @@ -51,7 +51,7 @@ //============================================================================== /** The Note class contains text editor used to display and edit the note's contents and will also listen to changes in the text and mark the FileBasedDocument as 'dirty'. This 'dirty' - flag is used to promt the user to save the note when it is closed. + flag is used to prompt the user to save the note when it is closed. */ class Note : public Component, public FileBasedDocument diff --git a/examples/Utilities/TimersAndEventsDemo.h b/examples/Utilities/TimersAndEventsDemo.h index 01b29a89fc..56ca48e3a5 100644 --- a/examples/Utilities/TimersAndEventsDemo.h +++ b/examples/Utilities/TimersAndEventsDemo.h @@ -134,7 +134,7 @@ private: { stopFlashing(); sendChangeMessage(); - // Once we've finsihed flashing send a change message to trigger the next component to flash + // Once we've finished flashing send a change message to trigger the next component to flash } repaint(); @@ -173,7 +173,7 @@ public: addAndMakeVisible (randomColourButton); randomColourButton.onClick = [this] { randomColourButtonClicked(); }; - // lay out our components in a psudo random grid + // lay out our components in a pseudo random grid Rectangle area (0, 100, 150, 150); for (auto* comp : flashingComponents) diff --git a/examples/Utilities/XMLandJSONDemo.h b/examples/Utilities/XMLandJSONDemo.h index 79d18661a2..b780a1deb6 100644 --- a/examples/Utilities/XMLandJSONDemo.h +++ b/examples/Utilities/XMLandJSONDemo.h @@ -345,7 +345,7 @@ private: resultsTree.setRootItem (rootItem.get()); } - /** Parses the editors contects as XML. */ + /** Parses the editor's contents as XML. */ TreeViewItem* rebuildXml() { parsedXml.reset(); @@ -368,7 +368,7 @@ private: return new XmlTreeItem (*parsedXml); } - /** Parses the editors contects as JSON. */ + /** Parses the editor's contents as JSON. */ TreeViewItem* rebuildJson() { var parsedJson; diff --git a/extras/AudioPluginHost/Source/UI/PluginWindow.h b/extras/AudioPluginHost/Source/UI/PluginWindow.h index e2abee4665..ac1af990d0 100644 --- a/extras/AudioPluginHost/Source/UI/PluginWindow.h +++ b/extras/AudioPluginHost/Source/UI/PluginWindow.h @@ -31,7 +31,7 @@ class PluginGraph; /** - A window that shows a log of parameter change messagse sent by the plugin. + A window that shows a log of parameter change messages sent by the plugin. */ class PluginDebugWindow : public AudioProcessorEditor, public AudioProcessorParameter::Listener, diff --git a/extras/Projucer/Source/ComponentEditor/jucer_GeneratedCode.h b/extras/Projucer/Source/ComponentEditor/jucer_GeneratedCode.h index 29eda964a3..a7e84f25a0 100644 --- a/extras/Projucer/Source/ComponentEditor/jucer_GeneratedCode.h +++ b/extras/Projucer/Source/ComponentEditor/jucer_GeneratedCode.h @@ -54,7 +54,7 @@ public: String className; String componentName; String parentClassInitialiser; // optional parent class initialiser to go before the items in the initialisers list - StringArray initialisers; // (a list of the member variables that need initalising after the constructor declaration) + StringArray initialisers; // (a list of the member variables that need initialising after the constructor declaration) String parentClasses; String constructorParams; String privateMemberDeclarations; diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h index 11cee628d7..e917cef0e2 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h @@ -479,7 +479,7 @@ public: props.add (new TextPropertyComponent (subprojectsValue, "Xcode Subprojects", 8192, true), "Paths to Xcode projects that should be added to the build (one per line). " - "The names of the required build products can be specified after a colon, comma seperated, " + "The names of the required build products can be specified after a colon, comma separated, " "e.g. \"path/to/MySubProject.xcodeproj: MySubProject, OtherTarget\". " "If no build products are specified, all build products associated with a subproject will be added."); diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectSaver.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectSaver.h index c2711ecc9b..57577a5336 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectSaver.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectSaver.h @@ -125,7 +125,7 @@ public: if (errors.size() == 0) { - // Workaround for a bug where Xcode thinks the project is invalid if opened immedietely + // Workaround for a bug where Xcode thinks the project is invalid if opened immediately // after writing if (waitAfterSaving) Thread::sleep (2000); diff --git a/modules/juce_analytics/analytics/juce_ButtonTracker.h b/modules/juce_analytics/analytics/juce_ButtonTracker.h index 8b005bbac5..a385c6ad3c 100644 --- a/modules/juce_analytics/analytics/juce_ButtonTracker.h +++ b/modules/juce_analytics/analytics/juce_ButtonTracker.h @@ -42,7 +42,7 @@ public: //============================================================================== /** Creating one of these automatically sends analytics events to the Analytics - singeton when the corresponding button is clicked. + singleton when the corresponding button is clicked. The name and parameters of the analytics event will be populated from the variables supplied here. If clicking changes the button's state then the diff --git a/modules/juce_audio_basics/buffers/juce_AudioSampleBuffer.h b/modules/juce_audio_basics/buffers/juce_AudioSampleBuffer.h index 36e22a4faf..f4ab1df073 100644 --- a/modules/juce_audio_basics/buffers/juce_AudioSampleBuffer.h +++ b/modules/juce_audio_basics/buffers/juce_AudioSampleBuffer.h @@ -116,7 +116,7 @@ public: /** Copies another buffer. This buffer will make its own copy of the other's data, unless the buffer was created - using an external data buffer, in which case boths buffers will just point to the same + using an external data buffer, in which case both buffers will just point to the same shared block of data. */ AudioBuffer (const AudioBuffer& other) diff --git a/modules/juce_audio_basics/midi/juce_MidiKeyboardState.h b/modules/juce_audio_basics/midi/juce_MidiKeyboardState.h index 5b20bc570e..47aaf6923c 100644 --- a/modules/juce_audio_basics/midi/juce_MidiKeyboardState.h +++ b/modules/juce_audio_basics/midi/juce_MidiKeyboardState.h @@ -73,7 +73,7 @@ public: Represents a piano keyboard, keeping track of which keys are currently pressed. This object can parse a stream of midi events, using them to update its idea - of which keys are pressed for each individiual midi channel. + of which keys are pressed for each individual midi channel. When keys go up or down, it can broadcast these events to listener objects. @@ -135,7 +135,7 @@ public: It will also trigger a synchronous callback to the listeners to tell them that the key has gone up. - But if the note isn't acutally down for the given channel, this method will in fact do nothing. + But if the note isn't actually down for the given channel, this method will in fact do nothing. */ void noteOff (int midiChannel, int midiNoteNumber, float velocity); diff --git a/modules/juce_audio_basics/midi/juce_MidiMessageSequence.cpp b/modules/juce_audio_basics/midi/juce_MidiMessageSequence.cpp index f58fd788af..d74aa583dd 100644 --- a/modules/juce_audio_basics/midi/juce_MidiMessageSequence.cpp +++ b/modules/juce_audio_basics/midi/juce_MidiMessageSequence.cpp @@ -378,7 +378,7 @@ struct MidiMessageSequenceTest : public UnitTest expectEquals (s.getIndexOfMatchingKeyUp (0), 2); expectEquals (s.getIndexOfMatchingKeyUp (1), 3); - beginTest ("Time & indeces"); + beginTest ("Time & indices"); expectEquals (s.getNextIndexAtTime (0.5), 1); expectEquals (s.getNextIndexAtTime (2.5), 2); expectEquals (s.getNextIndexAtTime (9.0), 4); diff --git a/modules/juce_audio_basics/midi/juce_MidiRPN.h b/modules/juce_audio_basics/midi/juce_MidiRPN.h index 94ffc731e3..869afac782 100644 --- a/modules/juce_audio_basics/midi/juce_MidiRPN.h +++ b/modules/juce_audio_basics/midi/juce_MidiRPN.h @@ -142,7 +142,7 @@ public: @param use14BitValue If true (default), the value will have 14-bit precision (two MIDI bytes). If false, instead the value will have - 7-bit presision (a single MIDI byte). + 7-bit precision (a single MIDI byte). */ static MidiBuffer generate (int channel, int parameterNumber, diff --git a/modules/juce_audio_basics/mpe/juce_MPEInstrument.h b/modules/juce_audio_basics/mpe/juce_MPEInstrument.h index 1f0b132da7..91a0b2b3dc 100644 --- a/modules/juce_audio_basics/mpe/juce_MPEInstrument.h +++ b/modules/juce_audio_basics/mpe/juce_MPEInstrument.h @@ -27,7 +27,7 @@ namespace juce /** This class represents an instrument handling MPE. - It has an MPE zone layout and maintans a state of currently + It has an MPE zone layout and maintains a state of currently active (playing) notes and the values of their dimensions of expression. You can trigger and modulate notes: diff --git a/modules/juce_audio_basics/mpe/juce_MPEMessages.h b/modules/juce_audio_basics/mpe/juce_MPEMessages.h index a6e31e854d..1275dacd39 100644 --- a/modules/juce_audio_basics/mpe/juce_MPEMessages.h +++ b/modules/juce_audio_basics/mpe/juce_MPEMessages.h @@ -99,7 +99,7 @@ public: /** Returns the sequence of MIDI messages that, if sent to an Expressive MIDI device, will reset the whole MPE zone layout of the - device to the laoyut passed in. This will first clear the current lower and upper + device to the layout passed in. This will first clear the current lower and upper zones, then then set the zones contained in the passed-in zone layout, and set their per-note and master pitchbend ranges to their current values. */ diff --git a/modules/juce_audio_basics/mpe/juce_MPESynthesiser.h b/modules/juce_audio_basics/mpe/juce_MPESynthesiser.h index 587ce4df5d..8a999d66e8 100644 --- a/modules/juce_audio_basics/mpe/juce_MPESynthesiser.h +++ b/modules/juce_audio_basics/mpe/juce_MPESynthesiser.h @@ -247,7 +247,7 @@ protected: int numSamples) override; /** This will simply call renderNextBlock for each currently active - voice and fill the buffer with the sum. (souble-precision version) + voice and fill the buffer with the sum. (double-precision version) Override this method if you need to do more work to render your audio. */ void renderNextSubBlock (AudioBuffer& outputAudio, diff --git a/modules/juce_audio_basics/sources/juce_AudioSource.h b/modules/juce_audio_basics/sources/juce_AudioSource.h index 3b48ee0660..401c4f772e 100644 --- a/modules/juce_audio_basics/sources/juce_AudioSource.h +++ b/modules/juce_audio_basics/sources/juce_AudioSource.h @@ -122,7 +122,7 @@ public: An AudioSource has two states: prepared and unprepared. - The prepareToPlay() method is guaranteed to be called at least once on an 'unpreprared' + The prepareToPlay() method is guaranteed to be called at least once on an 'unprepared' source to put it into a 'prepared' state before any calls will be made to getNextAudioBlock(). This callback allows the source to initialise any resources it might need when playing. diff --git a/modules/juce_audio_devices/juce_audio_devices.h b/modules/juce_audio_devices/juce_audio_devices.h index 20a2c5f648..6117412923 100644 --- a/modules/juce_audio_devices/juce_audio_devices.h +++ b/modules/juce_audio_devices/juce_audio_devices.h @@ -63,7 +63,7 @@ Enables the use of the Windows Runtime API for MIDI, allowing connections to Bluetooth Low Energy devices on Windows 10 version 1809 (October 2018 Update) and later. If you enable this flag then older, unsupported, - versions of Windows will automatically fall back to using the regualar + versions of Windows will automatically fall back to using the regular Win32 MIDI API. You will need version 10.0.14393.0 of the Windows Standalone SDK to compile diff --git a/modules/juce_audio_devices/native/juce_android_OpenSL.cpp b/modules/juce_audio_devices/native/juce_android_OpenSL.cpp index 7e67c1d006..4a19f7710b 100644 --- a/modules/juce_audio_devices/native/juce_android_OpenSL.cpp +++ b/modules/juce_audio_devices/native/juce_android_OpenSL.cpp @@ -757,7 +757,7 @@ public: // only the player or the recorder should enter this section at any time if (guard.compareAndSetBool (1, 0)) { - // are there enough buffers avaialable to process some audio + // are there enough buffers available to process some audio if ((inputChannels == 0 || recorder->isBufferAvailable()) && (outputChannels == 0 || player->isBufferAvailable())) { T* recorderBuffer = (inputChannels > 0 ? recorder->getNextBuffer() : nullptr); @@ -854,7 +854,7 @@ public: 22050.0, 24000.0, 32000.0, 44100.0, 48000.0 }; Array retval (rates, numElementsInArray (rates)); - // make sure the native sample rate is pafrt of the list + // make sure the native sample rate is part of the list double native = getNativeSampleRate(); if (native != 0.0 && ! retval.contains (native)) diff --git a/modules/juce_audio_devices/native/juce_linux_ALSA.cpp b/modules/juce_audio_devices/native/juce_linux_ALSA.cpp index 9fff0b1efe..f126c1dcb7 100644 --- a/modules/juce_audio_devices/native/juce_linux_ALSA.cpp +++ b/modules/juce_audio_devices/native/juce_linux_ALSA.cpp @@ -1249,7 +1249,7 @@ private: snd_device_name_free_hint (hints); } - // sometimes the "default" device is not listed, but it is nice to see it explicitely in the list + // sometimes the "default" device is not listed, but it is nice to see it explicitly in the list if (! outputIds.contains ("default")) testDevice ("default", "Default ALSA Output", "Default ALSA Input"); diff --git a/modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp b/modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp index 8f1004e010..86b064047f 100644 --- a/modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp +++ b/modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp @@ -31,7 +31,7 @@ namespace juce #ifdef __clang__ #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Wnonnull" // aovid some spurious 10.11 SDK warnings + #pragma clang diagnostic ignored "-Wnonnull" // avoid some spurious 10.11 SDK warnings #endif //============================================================================== diff --git a/modules/juce_audio_devices/native/juce_win32_Midi.cpp b/modules/juce_audio_devices/native/juce_win32_Midi.cpp index b3daf9fd55..5a39111a15 100644 --- a/modules/juce_audio_devices/native/juce_win32_Midi.cpp +++ b/modules/juce_audio_devices/native/juce_win32_Midi.cpp @@ -1458,8 +1458,8 @@ private: } ).Get()); - // We need to use a timout here, rather than waiting indefinitely, as the - // WinRT API can occaisonally hang! + // We need to use a timeout here, rather than waiting indefinitely, as the + // WinRT API can occasionally hang! portOpened.wait (2000); } diff --git a/modules/juce_audio_formats/codecs/juce_CoreAudioFormat.cpp b/modules/juce_audio_formats/codecs/juce_CoreAudioFormat.cpp index 330b86b2c0..dd6737a8ca 100644 --- a/modules/juce_audio_formats/codecs/juce_CoreAudioFormat.cpp +++ b/modules/juce_audio_formats/codecs/juce_CoreAudioFormat.cpp @@ -352,9 +352,9 @@ public: auto status = AudioFileOpenWithCallbacks (this, &readCallback, - nullptr, // write needs to be null to avoid permisisions errors + nullptr, // write needs to be null to avoid permissions errors &getSizeCallback, - nullptr, // setSize needs to be null to avoid permisisions errors + nullptr, // setSize needs to be null to avoid permissions errors 0, // AudioFileTypeID inFileTypeHint &audioFileID); if (status == noErr) @@ -616,7 +616,7 @@ public: : UnitTest ("Core Audio Layout <-> JUCE channel layout conversion", UnitTestCategories::audio) {} - // some ambisonic tags which are not explicitely defined + // some ambisonic tags which are not explicitly defined enum { kAudioChannelLayoutTag_HOA_ACN_SN3D_0Order = (190U<<16) | 1, diff --git a/modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp b/modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp index ac5a70fc58..3515786aed 100644 --- a/modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp +++ b/modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp @@ -1356,7 +1356,7 @@ public: { // 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 usable file.. writeHeader(); writeFailed = true; return false; diff --git a/modules/juce_audio_formats/codecs/juce_WindowsMediaAudioFormat.cpp b/modules/juce_audio_formats/codecs/juce_WindowsMediaAudioFormat.cpp index 0168893740..3474442567 100644 --- a/modules/juce_audio_formats/codecs/juce_WindowsMediaAudioFormat.cpp +++ b/modules/juce_audio_formats/codecs/juce_WindowsMediaAudioFormat.cpp @@ -206,7 +206,7 @@ public: if (hasJumped) bufferedRange.setStart ((int64) ((sampleTime * (int64) sampleRate) / 10000000)); else - bufferedRange.setStart (bufferedRange.getEnd()); // (because the positions returned often aren't continguous) + bufferedRange.setStart (bufferedRange.getEnd()); // (because the positions returned often aren't contiguous) bufferedRange.setLength ((int64) (dataLength / stride)); diff --git a/modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp b/modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp index adc374e1e8..0a295f8f73 100644 --- a/modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp @@ -1652,7 +1652,7 @@ namespace AAXClasses if (isInAudioSuite()) { - // AudioSuite doesnt support multiple output buses + // AudioSuite doesn't support multiple output buses for (int i = 1; i < newLayout.outputBuses.size(); ++i) newLayout.outputBuses.getReference (i) = AudioChannelSet::disabled(); @@ -1823,7 +1823,7 @@ namespace AAXClasses if (LegacyAudioParameter::getParamID (aaxMeters[idx], false) == paramID) break; - // you sepecified a parameter id in your curve but the parameter does not have the meter + // you specified a parameter id in your curve but the parameter does not have the meter // category jassert (idx < aaxMeters.size()); return 'Metr' + static_cast (idx); diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index 9b9a7f9f38..879c9066b4 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -38,21 +38,21 @@ #if JucePlugin_VersionCode < 0x010000 // Major < 0 - #if (JucePlugin_VersionCode & 0x00FF00) > (9 * 0x100) // check if Minor number exceeeds 9 + #if (JucePlugin_VersionCode & 0x00FF00) > (9 * 0x100) // check if Minor number exceeds 9 JUCE_COMPILER_WARNING ("When version has 'major' = 0, VST2 has trouble displaying 'minor' exceeding 9") #endif - #if (JucePlugin_VersionCode & 0xFF) > 9 // check if Bugfix number exceeeds 9 + #if (JucePlugin_VersionCode & 0xFF) > 9 // check if Bugfix number exceeds 9 JUCE_COMPILER_WARNING ("When version has 'major' = 0, VST2 has trouble displaying 'bugfix' exceeding 9") #endif #elif JucePlugin_VersionCode >= 0x650000 // Major >= 101 - #if (JucePlugin_VersionCode & 0x00FF00) > (99 * 0x100) // check if Minor number exceeeds 99 + #if (JucePlugin_VersionCode & 0x00FF00) > (99 * 0x100) // check if Minor number exceeds 99 JUCE_COMPILER_WARNING ("When version has 'major' > 100, VST2 has trouble displaying 'minor' exceeding 99") #endif - #if (JucePlugin_VersionCode & 0xFF) > 99 // check if Bugfix number exceeeds 99 + #if (JucePlugin_VersionCode & 0xFF) > 99 // check if Bugfix number exceeds 99 JUCE_COMPILER_WARNING ("When version has 'major' > 100, VST2 has trouble displaying 'bugfix' exceeding 99") #endif diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm index da1fb9895d..3672ab7358 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm @@ -230,7 +230,7 @@ void detachComponentFromWindowRefVST (Component* comp, void* window, bool isNSVi // The event loop needs to be run between closing the window and deleting the plugin, // presumably to let the cocoa objects get tidied up. Leaving out this line causes crashes // in Live when you delete the plugin with its window open. - // (Doing it this way rather than using a single longer timout means that we can guarantee + // (Doing it this way rather than using a single longer timeout means that we can guarantee // how many messages will be dispatched, which seems to be vital in Reaper) if (needToRunMessageLoop) for (int i = 20; --i >= 0;) diff --git a/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h b/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h index 3b7d8d3116..8ae1aa6ed2 100644 --- a/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h +++ b/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h @@ -78,7 +78,7 @@ public: errorMessage string. If you intend to instantiate a AudioUnit v3 plug-in then you must either - use the non-blocking asynchrous version below - or call this method from a + use the non-blocking asynchronous version below - or call this method from a thread other than the message thread and without blocking the message thread. */ @@ -90,7 +90,7 @@ public: all the formats that this manager knows about. The caller must supply a callback object which will be called when - the instantantiation has completed. + the instantiation has completed. If it can't load the plugin then the callback function will be called passing a nullptr as the instance argument along with an error message. @@ -105,7 +105,7 @@ public: the callback function. If you intend to instantiate a AudioUnit v3 plug-in then you must use - this non-blocking asynchrous version - or call the synchrous method + this non-blocking asynchronous version - or call the synchronous method from an auxiliary thread. */ void createPluginInstanceAsync (const PluginDescription& description, diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index b6eb6b8596..e98af93c24 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -2322,7 +2322,7 @@ private: // Workaround: unfortunately old JUCE VST-2 plug-ins had a bug and would crash if // you try to get the speaker arrangement when there are no input channels present. // Hopefully, one day (when there are no more old JUCE plug-ins around), we can - // commment out the next two lines. + // comment out the next two lines. if (effect->numInputs == 0) return false; diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessor.h b/modules/juce_audio_processors/processors/juce_AudioProcessor.h index ba11e3131d..836b09c7c9 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessor.h +++ b/modules/juce_audio_processors/processors/juce_AudioProcessor.h @@ -51,7 +51,7 @@ protected: //============================================================================== /** Constructor. - This constructor will create a main input and output bus which are diabled + This constructor will create a main input and output bus which are disabled by default. If you need more fine-grained control then use the other constructors. */ AudioProcessor(); @@ -400,7 +400,7 @@ public: /** Return the number of channels of the current bus. */ inline int getNumberOfChannels() const noexcept { return cachedChannelCount; } - /** Set the number of channles of this bus. This will return false if the AudioProcessor + /** Set the number of channels of this bus. This will return false if the AudioProcessor does not support this layout. */ bool setNumberOfChannels (int channels); @@ -627,7 +627,7 @@ public: */ int getChannelIndexInProcessBlockBuffer (bool isInput, int busIndex, int channelIndex) const noexcept; - /** Returns the offset in a bus's buffer from an absolute channel indes. + /** Returns the offset in a bus's buffer from an absolute channel index. This method returns the offset in a bus's buffer given an absolute channel index. It also provides the bus index. For example, this method would return one @@ -771,7 +771,7 @@ public: /** Returns the next best layout which is contained in a channel layout map. - You can use this mehtod to help you implement getNextBestLayout. For example: + You can use this method to help you implement getNextBestLayout. For example: @code BusesLayout getNextBestLayout (const BusesLayout& layouts) override @@ -900,7 +900,7 @@ public: If this method returns a nullptr then you can still control the bypass by calling processBlockBypassed instead of processBlock. On the other hand, if this method returns a non-null value, you should never call - processBlockBypassed but use the returned parameter to conrol the bypass + processBlockBypassed but use the returned parameter to control the bypass state instead. A plug-in can override this function to return a parameter which control's your @@ -1231,7 +1231,7 @@ public: AudioProcessor about which track the AudioProcessor is loaded on. This method may only be called on the message thread. - If you are implemeting an AudioProcessor then you can override this callback + If you are implementing an AudioProcessor then you can override this callback to do something useful with the track properties such as changing the colour of your AudioProcessor's editor. It's entirely up to the host when and how often this callback will be called. diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h b/modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h index 1d3b390077..8552d7d397 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h +++ b/modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h @@ -205,7 +205,7 @@ public: /** Returns the current value of the parameter as a String. This function can be called when you are hosting plug-ins to get a - more specialsed textual represenation of the current value from the + more specialised textual representation of the current value from the plug-in, for example "On" rather than "1.0". If you are implementing a plug-in then you should ignore this function diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h b/modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h index 4d9404e317..6c1580ad5e 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h +++ b/modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h @@ -166,7 +166,7 @@ public: /** Returns the group's separator string. */ String getSeparator() const; - /** Returns the parent of the group, or nullptr if this is a top-levle group. */ + /** Returns the parent of the group, or nullptr if this is a top-level group. */ const AudioProcessorParameterGroup* getParent() const noexcept; //============================================================================== diff --git a/modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp b/modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp index 9e76edc23b..2c120c4b97 100644 --- a/modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp +++ b/modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp @@ -398,7 +398,7 @@ public: // You need to use at least one thread when scanning plug-ins asynchronously jassert (! allowAsync || (numThreads > 0)); - // If the filesOrIdentifiersToScan argumnent isn't empty, we should only scan these + // If the filesOrIdentifiersToScan argument isn't empty, we should only scan these // If the path is empty, then paths aren't used for this format. if (filesOrIdentifiersToScan.isEmpty() && path.getNumPaths() > 0) { diff --git a/modules/juce_audio_utils/gui/juce_AudioAppComponent.h b/modules/juce_audio_utils/gui/juce_AudioAppComponent.h index 303632067a..e64eeccc30 100644 --- a/modules/juce_audio_utils/gui/juce_AudioAppComponent.h +++ b/modules/juce_audio_utils/gui/juce_AudioAppComponent.h @@ -61,7 +61,7 @@ public: An AudioSource has two states: prepared and unprepared. - The prepareToPlay() method is guaranteed to be called at least once on an 'unpreprared' + The prepareToPlay() method is guaranteed to be called at least once on an 'unprepared' source to put it into a 'prepared' state before any calls will be made to getNextAudioBlock(). This callback allows the source to initialise any resources it might need when playing. diff --git a/modules/juce_blocks_basics/blocks/juce_Block.h b/modules/juce_blocks_basics/blocks/juce_Block.h index cea01bf903..b4717c9401 100644 --- a/modules/juce_blocks_basics/blocks/juce_Block.h +++ b/modules/juce_blocks_basics/blocks/juce_Block.h @@ -458,7 +458,7 @@ public: /** Provides a callback that will be called when a config changes. */ virtual void setConfigChangedCallback (std::function) = 0; - /** Provides a callback that will be called when a prgoram has been loaded. */ + /** Provides a callback that will be called when a program has been loaded. */ virtual void setProgramLoadedCallback (std::function programLoaded) = 0; //============================================================================== diff --git a/modules/juce_blocks_basics/blocks/juce_BlocksVersion.h b/modules/juce_blocks_basics/blocks/juce_BlocksVersion.h index 66f8bbf5b2..e20ad5f219 100644 --- a/modules/juce_blocks_basics/blocks/juce_BlocksVersion.h +++ b/modules/juce_blocks_basics/blocks/juce_BlocksVersion.h @@ -40,10 +40,10 @@ public: /** The release tag for this version, such as "beta", "alpha", "rc", etc */ String releaseType; - /** A numberical value assosiated with the release tag, such as "beta 4" */ + /** A numerical value associated with the release tag, such as "beta 4" */ int releaseCount = 0; - /** The assosiated git commit that generated this firmware version */ + /** The associated git commit that generated this firmware version */ String commit; /** Identify "forced" firmware builds **/ diff --git a/modules/juce_blocks_basics/blocks/juce_ControlButton.h b/modules/juce_blocks_basics/blocks/juce_ControlButton.h index 426a14a217..ec09b012a1 100644 --- a/modules/juce_blocks_basics/blocks/juce_ControlButton.h +++ b/modules/juce_blocks_basics/blocks/juce_ControlButton.h @@ -95,13 +95,13 @@ public: /** Returns the position of this button on the device, in device units. For buttons that are on the side of the device, this may want to return a value that - is beyond the phyiscal block size. + is beyond the physical block size. */ virtual float getPositionX() const = 0; /** Returns the position of this button on the device, in device units. For buttons that are on the side of the device, this may want to return a value that - is beyond the phyiscal block size. + is beyond the physical block size. */ virtual float getPositionY() const = 0; diff --git a/modules/juce_blocks_basics/blocks/juce_TouchList.h b/modules/juce_blocks_basics/blocks/juce_TouchList.h index 5f7287d939..30ee830634 100644 --- a/modules/juce_blocks_basics/blocks/juce_TouchList.h +++ b/modules/juce_blocks_basics/blocks/juce_TouchList.h @@ -130,7 +130,7 @@ public: TouchEntry* end() noexcept { return touches.end(); } const TouchEntry* end() const noexcept { return touches.end(); } - /** Retrieve a reference to particular item in the list of touch entires. */ + /** Retrieve a reference to particular item in the list of touch entries. */ TouchEntry& operator[] (const int index) { return touches.getReference (index); } /** Resets all contents, doest not generate any call-backs. */ diff --git a/modules/juce_blocks_basics/topology/internal/juce_DepreciatedVersionReader.cpp b/modules/juce_blocks_basics/topology/internal/juce_DepreciatedVersionReader.cpp index c871d0924b..f237ee19f2 100644 --- a/modules/juce_blocks_basics/topology/internal/juce_DepreciatedVersionReader.cpp +++ b/modules/juce_blocks_basics/topology/internal/juce_DepreciatedVersionReader.cpp @@ -25,7 +25,7 @@ namespace juce /** Firmware below 0.3.0 does not report its version over the Blocks API. - This class can make requests and process responses to retreive the master Block version. + This class can make requests and process responses to retrieve the master Block version. */ class DepreciatedVersionReader : private MIDIDeviceConnection::Listener, private Timer diff --git a/modules/juce_blocks_basics/topology/internal/juce_MIDIDeviceDetector.cpp b/modules/juce_blocks_basics/topology/internal/juce_MIDIDeviceDetector.cpp index 43a845389f..725afb5476 100644 --- a/modules/juce_blocks_basics/topology/internal/juce_MIDIDeviceDetector.cpp +++ b/modules/juce_blocks_basics/topology/internal/juce_MIDIDeviceDetector.cpp @@ -149,8 +149,8 @@ private: bool lockedFromOutside = true; /** For backwards compatibility, the block interprocess lock has to use the midi input name. - The below is necceccary because blocks of the same type might duplicate a port name, so - must share an interporcess lock. + The below is necessary because blocks of the same type might duplicate a port name, so + must share an interprocess lock. */ std::shared_ptr createMidiPortLock (const String& midiInName, const String& midiOutName) { diff --git a/modules/juce_blocks_basics/topology/juce_BlockGraph.h b/modules/juce_blocks_basics/topology/juce_BlockGraph.h index 7509c029d2..c604139e26 100644 --- a/modules/juce_blocks_basics/topology/juce_BlockGraph.h +++ b/modules/juce_blocks_basics/topology/juce_BlockGraph.h @@ -31,7 +31,7 @@ namespace juce class BlockGraph { public: - /** Creates a BlockGraph object from a BlockTopology with an optional filter fucntion. This + /** Creates a BlockGraph object from a BlockTopology with an optional filter function. This will build a block graph of traversal paths for each master. */ BlockGraph (const BlockTopology topology, std::function filter = nullptr); diff --git a/modules/juce_blocks_basics/topology/juce_Topology.h b/modules/juce_blocks_basics/topology/juce_Topology.h index d2ab65ef00..46c122acfe 100644 --- a/modules/juce_blocks_basics/topology/juce_Topology.h +++ b/modules/juce_blocks_basics/topology/juce_Topology.h @@ -23,7 +23,7 @@ namespace juce { -/** Describes a phyiscal connection between two ports of two block devices. +/** Describes a physical connection between two ports of two block devices. @tags{Blocks} */ diff --git a/modules/juce_cryptography/encryption/juce_BlowFish.h b/modules/juce_cryptography/encryption/juce_BlowFish.h index f6cd04bc81..57ab8c63c6 100644 --- a/modules/juce_cryptography/encryption/juce_BlowFish.h +++ b/modules/juce_cryptography/encryption/juce_BlowFish.h @@ -73,11 +73,11 @@ public: @param buffer The message that should be encrypted. See bufferSize on size requirements! @param sizeOfMsg The size of the message that should be encrypted in bytes - @param bufferSize The size of the buffer in bytes. To accommodate the encypted + @param bufferSize The size of the buffer in bytes. To accommodate the encrypted data, the buffer must be larger than the message: the size of the buffer needs to be equal or greater than the size of the - message in bytes rounded to the next integer which is divisable - by eight. If the message size in bytes is already divisable by eight + message in bytes rounded to the next integer which is divisible + by eight. If the message size in bytes is already divisible by eight then you need to add eight bytes to the buffer size. If in doubt simply use bufferSize = sizeOfMsg + 8. diff --git a/modules/juce_dsp/containers/juce_AudioBlock.h b/modules/juce_dsp/containers/juce_AudioBlock.h index 64576c56b5..b8c0074bfb 100644 --- a/modules/juce_dsp/containers/juce_AudioBlock.h +++ b/modules/juce_dsp/containers/juce_AudioBlock.h @@ -234,7 +234,7 @@ public: return AudioBlock (channels + channel, 1, startSample, numSamples); } - /** Returns a subset of continguous channels + /** Returns a subset of contiguous channels @param channelStart First channel of the subset @param numChannelsToUse Count of channels in the subset */ diff --git a/modules/juce_dsp/containers/juce_SIMDRegister.h b/modules/juce_dsp/containers/juce_SIMDRegister.h index 808f3cda09..9cf8258883 100644 --- a/modules/juce_dsp/containers/juce_SIMDRegister.h +++ b/modules/juce_dsp/containers/juce_SIMDRegister.h @@ -40,7 +40,7 @@ namespace dsp A wrapper around the platform's native SIMD register type. This class is only available on SIMD machines. Use JUCE_USE_SIMD to query - if SIMD is avaialble for your system. + if SIMD is available for your system. SIMDRegister is a templated class representing the native vectorized version of FloatingType. SIMDRegister supports all numerical @@ -117,7 +117,7 @@ struct SIMDRegister /** Constructs an object from a scalar type by broadcasting it to all elements. */ inline SIMDRegister (Type s) noexcept { *this = s; } - /** Destrutor. */ + /** Destructor. */ inline ~SIMDRegister() noexcept = default; //============================================================================== @@ -204,23 +204,23 @@ struct SIMDRegister inline SIMDRegister& JUCE_VECTOR_CALLTYPE operator*= (ElementType s) noexcept { value = CmplxOps::mul (value, CmplxOps::expand (s)); return *this; } //============================================================================== - /** Bit-and the reciver with SIMDRegister v and store the result in the receiver. */ + /** Bit-and the receiver with SIMDRegister v and store the result in the receiver. */ inline SIMDRegister& JUCE_VECTOR_CALLTYPE operator&= (vMaskType v) noexcept { value = NativeOps::bit_and (value, toVecType (v.value)); return *this; } - /** Bit-or the reciver with SIMDRegister v and store the result in the receiver. */ + /** Bit-or the receiver with SIMDRegister v and store the result in the receiver. */ inline SIMDRegister& JUCE_VECTOR_CALLTYPE operator|= (vMaskType v) noexcept { value = NativeOps::bit_or (value, toVecType (v.value)); return *this; } - /** Bit-xor the reciver with SIMDRegister v and store the result in the receiver. */ + /** Bit-xor the receiver with SIMDRegister v and store the result in the receiver. */ inline SIMDRegister& JUCE_VECTOR_CALLTYPE operator^= (vMaskType v) noexcept { value = NativeOps::bit_xor (value, toVecType (v.value)); return *this; } //============================================================================== - /** Bit-and each element of the reciver with the scalar s and store the result in the receiver.*/ + /** Bit-and each element of the receiver with the scalar s and store the result in the receiver.*/ inline SIMDRegister& JUCE_VECTOR_CALLTYPE operator&= (MaskType s) noexcept { value = NativeOps::bit_and (value, toVecType (s)); return *this; } - /** Bit-or each element of the reciver with the scalar s and store the result in the receiver.*/ + /** Bit-or each element of the receiver with the scalar s and store the result in the receiver.*/ inline SIMDRegister& JUCE_VECTOR_CALLTYPE operator|= (MaskType s) noexcept { value = NativeOps::bit_or (value, toVecType (s)); return *this; } - /** Bit-xor each element of the reciver with the scalar s and store the result in the receiver.*/ + /** Bit-xor each element of the receiver with the scalar s and store the result in the receiver.*/ inline SIMDRegister& JUCE_VECTOR_CALLTYPE operator^= (MaskType s) noexcept { value = NativeOps::bit_xor (value, toVecType (s)); return *this; } //============================================================================== diff --git a/modules/juce_dsp/containers/juce_SIMDRegister_test.cpp b/modules/juce_dsp/containers/juce_SIMDRegister_test.cpp index 837d586fc8..ea2b4fa94c 100644 --- a/modules/juce_dsp/containers/juce_SIMDRegister_test.cpp +++ b/modules/juce_dsp/containers/juce_SIMDRegister_test.cpp @@ -195,7 +195,7 @@ public: } //============================================================================== - // Someuseful operations to test + // Some useful operations to test struct Addition { template diff --git a/modules/juce_dsp/frequency/juce_FFT.h b/modules/juce_dsp/frequency/juce_FFT.h index c2669cfdda..883af17bac 100644 --- a/modules/juce_dsp/frequency/juce_FFT.h +++ b/modules/juce_dsp/frequency/juce_FFT.h @@ -62,7 +62,7 @@ public: /** Performs an in-place forward transform on a block of real data. - As the coefficients of the negative frequences (frequencies higher than + As the coefficients of the negative frequencies (frequencies higher than N/2 or pi) are the complex conjugate of their positive counterparts, it may not be necessary to calculate them for your particular application. You can use dontCalculateNegativeFrequencies to let the FFT diff --git a/modules/juce_dsp/maths/juce_Matrix.h b/modules/juce_dsp/maths/juce_Matrix.h index 8aa109d180..ba33d7a7b2 100644 --- a/modules/juce_dsp/maths/juce_Matrix.h +++ b/modules/juce_dsp/maths/juce_Matrix.h @@ -198,7 +198,7 @@ public: with the coefficients of b. After the execution of the algorithm, the vector b will contain the solution. - Returns true if the linear system of euqations was successfully solved. + Returns true if the linear system of equations was successfully solved. */ bool solve (Matrix& b) const noexcept; diff --git a/modules/juce_dsp/processors/juce_LadderFilter.h b/modules/juce_dsp/processors/juce_LadderFilter.h index f3f302d47d..7b2e7a8ad7 100644 --- a/modules/juce_dsp/processors/juce_LadderFilter.h +++ b/modules/juce_dsp/processors/juce_LadderFilter.h @@ -73,7 +73,7 @@ public: @param newValue a value between 0 and 1; higher values increase the resonance and can result in self oscillation! */ void setResonance (Type newValue) noexcept; - /** Sets the amound of saturation in the filter. + /** Sets the amount of saturation in the filter. @param newValue saturation amount; it can be any number greater than or equal to one. Higher values result in more distortion.*/ void setDrive (Type newValue) noexcept; diff --git a/modules/juce_dsp/processors/juce_Oscillator.h b/modules/juce_dsp/processors/juce_Oscillator.h index 41b65d5693..c3bb2da300 100644 --- a/modules/juce_dsp/processors/juce_Oscillator.h +++ b/modules/juce_dsp/processors/juce_Oscillator.h @@ -132,7 +132,7 @@ public: auto&& outBlock = context.getOutputBlock(); auto&& inBlock = context.getInputBlock(); - // this is an output-only processory + // this is an output-only processor jassert (outBlock.getNumSamples() <= static_cast (rampBuffer.size())); auto len = outBlock.getNumSamples(); diff --git a/modules/juce_events/broadcasters/juce_ActionBroadcaster.cpp b/modules/juce_events/broadcasters/juce_ActionBroadcaster.cpp index 7112a8116a..c900c00c7e 100644 --- a/modules/juce_events/broadcasters/juce_ActionBroadcaster.cpp +++ b/modules/juce_events/broadcasters/juce_ActionBroadcaster.cpp @@ -51,7 +51,7 @@ private: //============================================================================== ActionBroadcaster::ActionBroadcaster() { - // are you trying to create this object before or after juce has been intialised?? + // are you trying to create this object before or after juce has been initialised?? JUCE_ASSERT_MESSAGE_MANAGER_EXISTS } diff --git a/modules/juce_events/interprocess/juce_NetworkServiceDiscovery.h b/modules/juce_events/interprocess/juce_NetworkServiceDiscovery.h index 61ac68ebb1..ffe7d3507d 100644 --- a/modules/juce_events/interprocess/juce_NetworkServiceDiscovery.h +++ b/modules/juce_events/interprocess/juce_NetworkServiceDiscovery.h @@ -103,7 +103,7 @@ struct NetworkServiceDiscovery /** Destructor */ ~AvailableServiceList() override; - /** A lambda that can be set to recieve a callback when the list changes */ + /** A lambda that can be set to receive a callback when the list changes */ std::function onChange; /** Returns a list of the currently known services. */ diff --git a/modules/juce_events/messages/juce_MessageListener.cpp b/modules/juce_events/messages/juce_MessageListener.cpp index 78f18aa2d7..4a71d16626 100644 --- a/modules/juce_events/messages/juce_MessageListener.cpp +++ b/modules/juce_events/messages/juce_MessageListener.cpp @@ -34,7 +34,7 @@ void Message::messageCallback() MessageListener::MessageListener() noexcept { - // Are you trying to create a messagelistener before or after juce has been intialised?? + // Are you trying to create a messagelistener before or after juce has been initialised?? JUCE_ASSERT_MESSAGE_MANAGER_EXISTS } diff --git a/modules/juce_events/messages/juce_MessageManager.h b/modules/juce_events/messages/juce_MessageManager.h index fd5e1013cd..22b2d18951 100644 --- a/modules/juce_events/messages/juce_MessageManager.h +++ b/modules/juce_events/messages/juce_MessageManager.h @@ -223,14 +223,14 @@ public: If another thread is currently using the MessageManager, this will wait until that thread releases the lock to the MessageManager. - This call will only exit if the lock was accquired by this thread. Calling abort while + This call will only exit if the lock was acquired by this thread. Calling abort while a thread is waiting for enter to finish, will have no effect. @see exit, abort */ void enter() const noexcept; - /** Attempts to lock the meesage manager and exits if abort is called. + /** Attempts to lock the message manager and exits if abort is called. This method behaves identically to enter, except that it will abort waiting for the lock if the abort method is called. @@ -270,7 +270,7 @@ public: messageManagerLock.abort(); } - @returns false if waiting for a lock was aborted, true if the lock was accquired. + @returns false if waiting for a lock was aborted, true if the lock was acquired. @see enter, abort, ScopedTryLock */ bool tryEnter() const noexcept; @@ -283,7 +283,7 @@ public: /** Unblocks a thread which is waiting in tryEnter Call this method if you want to unblock a thread which is waiting for the MessageManager lock in tryEnter. - This method does not have any effetc on a thread waiting for a lock in enter. + This method does not have any effect on a thread waiting for a lock in enter. @see tryEnter */ void abort() const noexcept; diff --git a/modules/juce_graphics/contexts/juce_GraphicsContext.h b/modules/juce_graphics/contexts/juce_GraphicsContext.h index 95b5f2576e..e056340751 100644 --- a/modules/juce_graphics/contexts/juce_GraphicsContext.h +++ b/modules/juce_graphics/contexts/juce_GraphicsContext.h @@ -492,7 +492,7 @@ public: /** Draws part of an image, rescaling it to fit in a given target region. The specified area of the source image is rescaled and drawn to fill the - specifed destination rectangle. + specified destination rectangle. Images are composited using the context's current opacity, so if you don't want it to be drawn semi-transparently, be sure to call setOpacity (1.0f) diff --git a/modules/juce_graphics/fonts/juce_Font.h b/modules/juce_graphics/fonts/juce_Font.h index 91870c85ea..0b51473870 100644 --- a/modules/juce_graphics/fonts/juce_Font.h +++ b/modules/juce_graphics/fonts/juce_Font.h @@ -134,7 +134,7 @@ public: This may also be set to Font::getDefaultSansSerifFontName(), Font::getDefaultSerifFontName(), or Font::getDefaultMonospacedFontName(), which are not actual platform-specific font family names, - but are generic font familiy names that are used to represent the various default fonts. + but are generic font family names that are used to represent the various default fonts. If you need to know the exact typeface font family being used, you can call Font::getTypeface()->getName(), which will give you the platform-specific font family. diff --git a/modules/juce_graphics/fonts/juce_Typeface.h b/modules/juce_graphics/fonts/juce_Typeface.h index f1019a38d0..663c29c26b 100644 --- a/modules/juce_graphics/fonts/juce_Typeface.h +++ b/modules/juce_graphics/fonts/juce_Typeface.h @@ -119,7 +119,7 @@ public: */ virtual bool getOutlineForGlyph (int glyphNumber, Path& path) = 0; - /** Returns a new EdgeTable that contains the path for the givem glyph, with the specified transform applied. */ + /** Returns a new EdgeTable that contains the path for the given glyph, with the specified transform applied. */ virtual EdgeTable* getEdgeTableForGlyph (int glyphNumber, const AffineTransform& transform, float fontHeight); /** Returns true if the typeface uses hinting. */ diff --git a/modules/juce_graphics/geometry/juce_AffineTransform.h b/modules/juce_graphics/geometry/juce_AffineTransform.h index 85427116f8..06452d4990 100644 --- a/modules/juce_graphics/geometry/juce_AffineTransform.h +++ b/modules/juce_graphics/geometry/juce_AffineTransform.h @@ -270,7 +270,7 @@ public: */ float getScaleFactor() const noexcept; - /* A ready-to-use identity transform - now depracated. + /* A ready-to-use identity transform - now deprecated. @deprecated If you need an identity transform, just use AffineTransform() or {}. */ JUCE_DEPRECATED_STATIC (static const AffineTransform identity;) diff --git a/modules/juce_graphics/geometry/juce_Parallelogram.h b/modules/juce_graphics/geometry/juce_Parallelogram.h index e418dcf6ba..f55e38d126 100644 --- a/modules/juce_graphics/geometry/juce_Parallelogram.h +++ b/modules/juce_graphics/geometry/juce_Parallelogram.h @@ -162,7 +162,7 @@ public: + (bottomLeft - topLeft) * relativePosition.y; } - /** Returns a transformed verstion of the parallelogram. */ + /** Returns a transformed version of the parallelogram. */ Parallelogram transformedBy (const AffineTransform& transform) const noexcept { auto p = *this; diff --git a/modules/juce_graphics/geometry/juce_Path.h b/modules/juce_graphics/geometry/juce_Path.h index 73e728eb2d..e0cf526dea 100644 --- a/modules/juce_graphics/geometry/juce_Path.h +++ b/modules/juce_graphics/geometry/juce_Path.h @@ -440,7 +440,7 @@ public: draw a curve clockwise from the 9 o'clock position to the 3 o'clock position via 12 o'clock, you'd use 1.5*Pi and 2.5*Pi as the start and finish points. @param startAsNewSubPath if true, the arc will begin a new subpath from its starting point; if false, - it will be added to the current sub-path, continuing from the current postition + it will be added to the current sub-path, continuing from the current position @see addCentredArc, arcTo, addPieSegment, addEllipse */ @@ -467,7 +467,7 @@ public: draw a curve clockwise from the 9 o'clock position to the 3 o'clock position via 12 o'clock, you'd use 1.5*Pi and 2.5*Pi as the start and finish points. @param startAsNewSubPath if true, the arc will begin a new subpath from its starting point; if false, - it will be added to the current sub-path, continuing from the current postition + it will be added to the current sub-path, continuing from the current position @see addArc, arcTo */ @@ -653,7 +653,7 @@ public: @param preserveProportions if true, it will fit the path into the space without altering its horizontal/vertical scale ratio; if false, it will distort the path to fill the specified ratio both horizontally and vertically - @param justificationType if the proportions are preseved, the resultant path may be smaller + @param justificationType if the proportions are preserved, the resultant path may be smaller than the available rectangle, so this describes how it should be positioned within the space. @returns an appropriate transformation @@ -671,7 +671,7 @@ public: @param preserveProportions if true, it will fit the path into the space without altering its horizontal/vertical scale ratio; if false, it will distort the path to fill the specified ratio both horizontally and vertically - @param justificationType if the proportions are preseved, the resultant path may be smaller + @param justificationType if the proportions are preserved, the resultant path may be smaller than the available rectangle, so this describes how it should be positioned within the space. @returns an appropriate transformation diff --git a/modules/juce_graphics/images/juce_Image.h b/modules/juce_graphics/images/juce_Image.h index 10d2c36046..746a738bfb 100644 --- a/modules/juce_graphics/images/juce_Image.h +++ b/modules/juce_graphics/images/juce_Image.h @@ -336,13 +336,13 @@ public: /** Returns the colour of a given pixel. For performance reasons, this won't do any bounds-checking on the coordinates, so it's the caller's - repsonsibility to make sure they're within the image's size. + responsibility to make sure they're within the image's size. */ Colour getPixelColour (int x, int y) const noexcept; /** Sets the colour of a given pixel. For performance reasons, this won't do any bounds-checking on the coordinates, so it's the caller's - repsonsibility to make sure they're within the image's size. + responsibility to make sure they're within the image's size. */ void setPixelColour (int x, int y, Colour colour) const noexcept; diff --git a/modules/juce_graphics/images/juce_ImageConvolutionKernel.h b/modules/juce_graphics/images/juce_ImageConvolutionKernel.h index 84369580d8..8383ce4071 100644 --- a/modules/juce_graphics/images/juce_ImageConvolutionKernel.h +++ b/modules/juce_graphics/images/juce_ImageConvolutionKernel.h @@ -39,7 +39,7 @@ class JUCE_API ImageConvolutionKernel { public: //============================================================================== - /** Creates an empty convulution kernel. + /** Creates an empty convolution kernel. @param size the length of each dimension of the kernel, so e.g. if the size is 5, it will create a 5x5 kernel @@ -73,7 +73,7 @@ public: /** Multiplies all values in the kernel by a value. */ void rescaleAllValues (float multiplier); - /** Intialises the kernel for a gaussian blur. + /** Initialises the kernel for a gaussian blur. @param blurRadius this may be larger or smaller than the kernel's actual size but this will obviously be wasteful or clip at the diff --git a/modules/juce_graphics/native/juce_win32_DirectWriteTypeLayout.cpp b/modules/juce_graphics/native/juce_win32_DirectWriteTypeLayout.cpp index 3109ca0609..6e8facbcb0 100644 --- a/modules/juce_graphics/native/juce_win32_DirectWriteTypeLayout.cpp +++ b/modules/juce_graphics/native/juce_win32_DirectWriteTypeLayout.cpp @@ -303,7 +303,7 @@ namespace DirectWriteTypeLayout col.getFloatAlpha()), d2dBrush.resetAndGetPointerAddress()); - // We need to call SetDrawingEffect with a legimate brush to get DirectWrite to break text based on colours + // We need to call SetDrawingEffect with a legitimate brush to get DirectWrite to break text based on colours textLayout.SetDrawingEffect (d2dBrush, range); } } diff --git a/modules/juce_gui_basics/buttons/juce_TextButton.h b/modules/juce_gui_basics/buttons/juce_TextButton.h index b5811cbc6c..98ca4be762 100644 --- a/modules/juce_gui_basics/buttons/juce_TextButton.h +++ b/modules/juce_gui_basics/buttons/juce_TextButton.h @@ -54,7 +54,7 @@ public: @param buttonName the text to put in the button (the component's name is also initially set to this string, but these can be changed later using the setName() and setButtonText() methods) - @param toolTip an optional string to use as a toolip + @param toolTip an optional string to use as a tooltip */ TextButton (const String& buttonName, const String& toolTip); diff --git a/modules/juce_gui_basics/components/juce_Component.h b/modules/juce_gui_basics/components/juce_Component.h index 7dc3ed03bd..72d82cf0ad 100644 --- a/modules/juce_gui_basics/components/juce_Component.h +++ b/modules/juce_gui_basics/components/juce_Component.h @@ -54,7 +54,7 @@ public: /** Destructor. Note that when a component is deleted, any child components it contains are NOT - automatically deleted. It's your responsibilty to manage their lifespan - you + automatically deleted. It's your responsibility to manage their lifespan - you may want to use helper methods like deleteAllChildren(), or less haphazard approaches like using std::unique_ptrs or normal object aggregation to manage them. @@ -364,7 +364,7 @@ public: a screen coordinate. If you've used setTransform() to apply one or more transforms to components, then the source rectangle - may not actually be rectanglular when converted to the target space, so in that situation this will return + may not actually be rectangular when converted to the target space, so in that situation this will return the smallest rectangle that fully contains the transformed area. */ Rectangle getLocalArea (const Component* sourceComponent, @@ -383,7 +383,7 @@ public: /** Converts a rectangle from this component's coordinate space to a screen coordinate. If you've used setTransform() to apply one or more transforms to components, then the source rectangle - may not actually be rectanglular when converted to the target space, so in that situation this will return + may not actually be rectangular when converted to the target space, so in that situation this will return the smallest rectangle that fully contains the transformed area. @see getLocalPoint, localPointToGlobal */ @@ -1384,7 +1384,7 @@ public: virtual void enablementChanged(); //============================================================================== - /** Returns the component's current transparancy level. + /** Returns the component's current transparency level. See setAlpha() for more details. */ float getAlpha() const noexcept; diff --git a/modules/juce_gui_basics/drawables/juce_Drawable.h b/modules/juce_gui_basics/drawables/juce_Drawable.h index e743b2de6d..56ac7dfbb7 100644 --- a/modules/juce_gui_basics/drawables/juce_Drawable.h +++ b/modules/juce_gui_basics/drawables/juce_Drawable.h @@ -123,7 +123,7 @@ public: DrawableComposite* getParent() const; /** Sets a the clipping region of this drawable using another drawable. - The drawbale passed in will be deleted when no longer needed. + The drawable passed in will be deleted when no longer needed. */ void setClipPath (std::unique_ptr drawableClipPath); @@ -178,7 +178,7 @@ public: static Path parseSVGPath (const String& svgPath); //============================================================================== - /** Returns the area that this drawble covers. + /** Returns the area that this drawable covers. The result is expressed in this drawable's own coordinate space, and does not take into account any transforms that may be applied to the component. */ diff --git a/modules/juce_gui_basics/filebrowser/juce_FileChooser.h b/modules/juce_gui_basics/filebrowser/juce_FileChooser.h index c80169d6f8..c834593fb0 100644 --- a/modules/juce_gui_basics/filebrowser/juce_FileChooser.h +++ b/modules/juce_gui_basics/filebrowser/juce_FileChooser.h @@ -293,7 +293,7 @@ public: Note: On iOS this will only return true if you have iCloud permissions and code-signing enabled in the Projucer and have added iCloud containers to your app in Apple's online developer portal. Additionally, the user must - have installed the iCloud app on their device and used the app at leat once. + have installed the iCloud app on their device and used the app at least once. */ static bool isPlatformDialogAvailable(); diff --git a/modules/juce_gui_basics/filebrowser/juce_FilePreviewComponent.h b/modules/juce_gui_basics/filebrowser/juce_FilePreviewComponent.h index 1e25368d61..d5263daff8 100644 --- a/modules/juce_gui_basics/filebrowser/juce_FilePreviewComponent.h +++ b/modules/juce_gui_basics/filebrowser/juce_FilePreviewComponent.h @@ -54,7 +54,7 @@ public: /** Called to indicate that the user's currently selected file has changed. @param newSelectedFile the newly selected file or directory, which may be - a defualt File() object if none is selected. + a default File() object if none is selected. */ virtual void selectedFileChanged (const File& newSelectedFile) = 0; diff --git a/modules/juce_gui_basics/layout/juce_Viewport.cpp b/modules/juce_gui_basics/layout/juce_Viewport.cpp index 0f89c12d8a..5dd8c25246 100644 --- a/modules/juce_gui_basics/layout/juce_Viewport.cpp +++ b/modules/juce_gui_basics/layout/juce_Viewport.cpp @@ -389,7 +389,7 @@ void Viewport::updateVisibleArea() auto oldContentBounds = contentComp->getBounds(); contentHolder.setBounds (contentArea); - // If the content has changed its size, that might affect our scrollbars, so go round again and re-caclulate.. + // If the content has changed its size, that might affect our scrollbars, so go round again and re-calculate.. if (oldContentBounds == contentComp->getBounds()) break; } diff --git a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp index d75790179b..553bbe0257 100644 --- a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp +++ b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp @@ -41,7 +41,7 @@ LookAndFeel::LookAndFeel() /* if this fails it means you're trying to create a LookAndFeel object before the static Colours have been initialised. That ain't gonna work. It probably means that you're using a static LookAndFeel object and that your compiler has - decided to intialise it before the Colours class. + decided to initialise it before the Colours class. */ jassert (Colours::white == Colour (0xffffffff)); diff --git a/modules/juce_gui_basics/menus/juce_PopupMenu.cpp b/modules/juce_gui_basics/menus/juce_PopupMenu.cpp index fd798792b4..675b5d1613 100644 --- a/modules/juce_gui_basics/menus/juce_PopupMenu.cpp +++ b/modules/juce_gui_basics/menus/juce_PopupMenu.cpp @@ -464,7 +464,7 @@ struct MenuWindow : public Component if (componentAttachedTo->reallyContains (mousePos, true)) { - postCommandMessage (PopupMenuSettings::dismissCommandId); // dismiss asynchrounously + postCommandMessage (PopupMenuSettings::dismissCommandId); // dismiss asynchronously return; } } diff --git a/modules/juce_gui_basics/menus/juce_PopupMenu.h b/modules/juce_gui_basics/menus/juce_PopupMenu.h index 5854baf3c4..60bedebfb7 100644 --- a/modules/juce_gui_basics/menus/juce_PopupMenu.h +++ b/modules/juce_gui_basics/menus/juce_PopupMenu.h @@ -399,7 +399,7 @@ public: /** Appends a separator to the menu, to help break it up into sections. The menu class is smart enough not to display separators at the top or bottom - of the menu, and it will replace mutliple adjacent separators with a single + of the menu, and it will replace multiple adjacent separators with a single one, so your code can be quite free and easy about adding these, and it'll always look ok. */ diff --git a/modules/juce_gui_basics/mouse/juce_ComponentDragger.h b/modules/juce_gui_basics/mouse/juce_ComponentDragger.h index eec0c5b204..f8e0cb22b0 100644 --- a/modules/juce_gui_basics/mouse/juce_ComponentDragger.h +++ b/modules/juce_gui_basics/mouse/juce_ComponentDragger.h @@ -85,7 +85,7 @@ public: @param e the current mouse-drag event @param constrainer an optional constrainer object that should be used to apply limits to the component's position. Pass - null if you don't want to contrain the movement. + null if you don't want to constrain the movement. @see startDraggingComponent */ void dragComponent (Component* componentToDrag, diff --git a/modules/juce_gui_basics/mouse/juce_DragAndDropTarget.h b/modules/juce_gui_basics/mouse/juce_DragAndDropTarget.h index 92a3d0c8ff..8ba892c35e 100644 --- a/modules/juce_gui_basics/mouse/juce_DragAndDropTarget.h +++ b/modules/juce_gui_basics/mouse/juce_DragAndDropTarget.h @@ -76,7 +76,7 @@ public: dragged. @param dragSourceDetails contains information about the source of the drag operation. - @returns true if this component wants to receive the other callbacks regarging this + @returns true if this component wants to receive the other callbacks regarding this type of object; if it returns false, no other callbacks will be made. */ virtual bool isInterestedInDragSource (const SourceDetails& dragSourceDetails) = 0; diff --git a/modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h b/modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h index 709e1f3413..d3bc5597ad 100644 --- a/modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h +++ b/modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h @@ -47,7 +47,7 @@ public: inside them! @param files the set of (absolute) pathnames of the files that the user is dragging - @returns true if this component wants to receive the other callbacks regarging this + @returns true if this component wants to receive the other callbacks regarding this type of object; if it returns false, no other callbacks will be made. */ virtual bool isInterestedInFileDrag (const StringArray& files) = 0; diff --git a/modules/juce_gui_basics/mouse/juce_MouseCursor.h b/modules/juce_gui_basics/mouse/juce_MouseCursor.h index 2010699bbf..e64c75bc30 100644 --- a/modules/juce_gui_basics/mouse/juce_MouseCursor.h +++ b/modules/juce_gui_basics/mouse/juce_MouseCursor.h @@ -46,7 +46,7 @@ public: ParentCursor = 0, /**< Indicates that the component's parent's cursor should be used. */ NoCursor, /**< An invisible cursor. */ - NormalCursor, /**< The stardard arrow cursor. */ + NormalCursor, /**< The standard arrow cursor. */ WaitCursor, /**< The normal hourglass or spinning-beachball 'busy' cursor. */ IBeamCursor, /**< A vertical I-beam for positioning within text. */ diff --git a/modules/juce_gui_basics/mouse/juce_MouseEvent.h b/modules/juce_gui_basics/mouse/juce_MouseEvent.h index d47a30c8da..2af4a9c3e5 100644 --- a/modules/juce_gui_basics/mouse/juce_MouseEvent.h +++ b/modules/juce_gui_basics/mouse/juce_MouseEvent.h @@ -417,7 +417,7 @@ struct MouseWheelDetails final /** If true, then the wheel has continuous, un-stepped motion. */ bool isSmooth; - /** If true, then this event is part of the intertial momentum phase that follows + /** If true, then this event is part of the inertial momentum phase that follows the wheel being released. */ bool isInertial; }; diff --git a/modules/juce_gui_basics/mouse/juce_MouseInputSource.h b/modules/juce_gui_basics/mouse/juce_MouseInputSource.h index f10f3d000d..5fd7b2ca39 100644 --- a/modules/juce_gui_basics/mouse/juce_MouseInputSource.h +++ b/modules/juce_gui_basics/mouse/juce_MouseInputSource.h @@ -35,7 +35,7 @@ namespace juce Each MouseEvent object contains a reference to the MouseInputSource that generated it. In an environment with a single mouse for input, all events will come from the same source, but in a multi-touch system, there may be multiple MouseInputSource - obects active, each representing a stream of events coming from a particular finger. + objects active, each representing a stream of events coming from a particular finger. Events coming from a single MouseInputSource are always sent in a fixed and predictable order: a mouseMove will never be called without a mouseEnter having been sent beforehand, diff --git a/modules/juce_gui_basics/mouse/juce_TextDragAndDropTarget.h b/modules/juce_gui_basics/mouse/juce_TextDragAndDropTarget.h index 46d2938847..b1ffd28dad 100644 --- a/modules/juce_gui_basics/mouse/juce_TextDragAndDropTarget.h +++ b/modules/juce_gui_basics/mouse/juce_TextDragAndDropTarget.h @@ -47,7 +47,7 @@ public: component, so don't do anything time-consuming in here! @param text the text that the user is dragging - @returns true if this component wants to receive the other callbacks regarging this + @returns true if this component wants to receive the other callbacks regarding this type of object; if it returns false, no other callbacks will be made. */ virtual bool isInterestedInTextDrag (const String& text) = 0; diff --git a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm index 10c0f49623..278904f2ef 100644 --- a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm +++ b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm @@ -947,7 +947,7 @@ public: // When windows are being resized, artificially throttling high-frequency repaints helps // to stop the event queue getting clogged, and keeps everything working smoothly. - // For some reason Logic also needs this throttling to recored parameter events correctly. + // For some reason Logic also needs this throttling to record parameter events correctly. if (msSinceLastRepaint < minimumRepaintInterval && shouldThrottleRepaint()) { startTimer (static_cast (minimumRepaintInterval - msSinceLastRepaint)); diff --git a/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h b/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h index d10b56d914..b3eeacebec 100644 --- a/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h +++ b/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h @@ -55,7 +55,7 @@ public: These are the values that will be read and written to the valueToControl value. This array must contain the same number of items as the choices array - @param maxChoices the maxmimum number of values which can be selected at once. The default of + @param maxChoices the maximum number of values which can be selected at once. The default of -1 will not limit the number that can be selected */ MultiChoicePropertyComponent (const Value& valueToControl, @@ -73,7 +73,7 @@ public: These are the values that will be read and written to the valueToControl value. This array must contain the same number of items as the choices array - @param maxChoices the maxmimum number of values which can be selected at once. The default of + @param maxChoices the maximum number of values which can be selected at once. The default of -1 will not limit the number that can be selected */ MultiChoicePropertyComponent (ValueWithDefault& valueToControl, diff --git a/modules/juce_gui_basics/widgets/juce_ComboBox.cpp b/modules/juce_gui_basics/widgets/juce_ComboBox.cpp index 2acde36854..d20093a70c 100644 --- a/modules/juce_gui_basics/widgets/juce_ComboBox.cpp +++ b/modules/juce_gui_basics/widgets/juce_ComboBox.cpp @@ -83,7 +83,7 @@ void ComboBox::addItem (const String& newItemText, int newItemId) // you can't add empty strings to the list.. jassert (newItemText.isNotEmpty()); - // IDs must be non-zero, as zero is used to indicate a lack of selecion. + // IDs must be non-zero, as zero is used to indicate a lack of selection. jassert (newItemId != 0); // you shouldn't use duplicate item IDs! diff --git a/modules/juce_gui_basics/widgets/juce_Slider.h b/modules/juce_gui_basics/widgets/juce_Slider.h index 8b9d6b2656..7a723dbb4c 100644 --- a/modules/juce_gui_basics/widgets/juce_Slider.h +++ b/modules/juce_gui_basics/widgets/juce_Slider.h @@ -107,7 +107,7 @@ public: { notDragging, /**< Dragging is not active. */ absoluteDrag, /**< The dragging corresponds directly to the value that is displayed. */ - velocityDrag /**< The dragging value change is relative to the velocity of the mouse mouvement. */ + velocityDrag /**< The dragging value change is relative to the velocity of the mouse movement. */ }; //============================================================================== diff --git a/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h b/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h index 01057d5109..e9a50b73b8 100644 --- a/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h +++ b/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h @@ -194,7 +194,7 @@ public: /** Triggers a re-sort of the table according to the current sort-column. - If you modifiy the table's contents, you can call this to signal that the table needs + If you modify the table's contents, you can call this to signal that the table needs to be re-sorted. (This doesn't do any sorting synchronously - it just asynchronously sends a call to the @@ -229,7 +229,7 @@ public: The index is an index from 0 to the number of columns that are currently visible (hidden ones are not counted). It returns a rectangle showing the position of the column relative - to this component's top-left. If the index is out-of-range, an empty rectangle is retrurned. + to this component's top-left. If the index is out-of-range, an empty rectangle is returned. */ Rectangle getColumnPosition (int index) const; @@ -382,7 +382,7 @@ public: highlightColourId = 0x1003830, /**< The colour of the table header background when the mouse is over or down above the the table header. It's up to the LookAndFeel to use a - variant of this colour to destiuish between + variant of this colour to distinguish between the down and hover state. */ }; diff --git a/modules/juce_gui_basics/widgets/juce_TreeView.h b/modules/juce_gui_basics/widgets/juce_TreeView.h index 734bc5e585..3c113a7dfc 100644 --- a/modules/juce_gui_basics/widgets/juce_TreeView.h +++ b/modules/juce_gui_basics/widgets/juce_TreeView.h @@ -532,7 +532,7 @@ public: /** Returns the index of this item in its parent's sub-items. */ int getIndexInParent() const noexcept; - /** Returns true if this item is the last of its parent's sub-itens. */ + /** Returns true if this item is the last of its parent's sub-items. */ bool isLastOfSiblings() const noexcept; /** Creates a string that can be used to uniquely retrieve this item in the tree. @@ -842,8 +842,8 @@ public: linesColourId = 0x1000501, /**< The colour to draw the lines with.*/ dragAndDropIndicatorColourId = 0x1000502, /**< The colour to use for the drag-and-drop target position indicator. */ selectedItemBackgroundColourId = 0x1000503, /**< The colour to use to fill the background of any selected items. */ - oddItemsColourId = 0x1000504, /**< The colour to use to fill the backround of the odd numbered items. */ - evenItemsColourId = 0x1000505 /**< The colour to use to fill the backround of the even numbered items. */ + oddItemsColourId = 0x1000504, /**< The colour to use to fill the background of the odd numbered items. */ + evenItemsColourId = 0x1000505 /**< The colour to use to fill the background of the even numbered items. */ }; //============================================================================== diff --git a/modules/juce_gui_basics/windows/juce_AlertWindow.cpp b/modules/juce_gui_basics/windows/juce_AlertWindow.cpp index 755d1dc0ee..a4376f7efe 100644 --- a/modules/juce_gui_basics/windows/juce_AlertWindow.cpp +++ b/modules/juce_gui_basics/windows/juce_AlertWindow.cpp @@ -63,7 +63,7 @@ AlertWindow::~AlertWindow() for (auto* t : textBoxes) t->setWantsKeyboardFocus (false); - // Giveaway focus before removing the editors, so that any TextEditor + // Give away focus before removing the editors, so that any TextEditor // with focus has a chance to dismiss native keyboard if shown. if (hasKeyboardFocus (true)) Component::unfocusAllComponents(); diff --git a/modules/juce_gui_basics/windows/juce_DialogWindow.h b/modules/juce_gui_basics/windows/juce_DialogWindow.h index 29ec188b5d..92583f748a 100644 --- a/modules/juce_gui_basics/windows/juce_DialogWindow.h +++ b/modules/juce_gui_basics/windows/juce_DialogWindow.h @@ -153,7 +153,7 @@ public: //============================================================================== /** Easy way of quickly showing a dialog box containing a given component. - Note: This method has been superceded by the DialogWindow::LaunchOptions structure, + Note: This method has been superseded by the DialogWindow::LaunchOptions structure, which does the same job with some extra flexibility. The showDialog method is here for backwards compatibility, but please use DialogWindow::LaunchOptions in new code. @@ -199,7 +199,7 @@ public: #if JUCE_MODAL_LOOPS_PERMITTED || DOXYGEN /** Easy way of quickly showing a dialog box containing a given component. - Note: This method has been superceded by the DialogWindow::LaunchOptions structure, + Note: This method has been superseded by the DialogWindow::LaunchOptions structure, which does the same job with some extra flexibility. The showDialog method is here for backwards compatibility, but please use DialogWindow::LaunchOptions in new code. diff --git a/modules/juce_gui_basics/windows/juce_ResizableWindow.h b/modules/juce_gui_basics/windows/juce_ResizableWindow.h index 473fdcee99..cf1ab85a88 100644 --- a/modules/juce_gui_basics/windows/juce_ResizableWindow.h +++ b/modules/juce_gui_basics/windows/juce_ResizableWindow.h @@ -159,7 +159,7 @@ public: A pointer to the object you pass in will be kept, but it won't be deleted by this object, so it's the caller's responsibility to manage it. - If you pass a nullptr, then no contraints will be placed on the positioning of the window. + If you pass a nullptr, then no constraints will be placed on the positioning of the window. */ void setConstrainer (ComponentBoundsConstrainer* newConstrainer); diff --git a/modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.h b/modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.h index 6810abc22a..bde976102b 100644 --- a/modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.h +++ b/modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.h @@ -337,7 +337,7 @@ public: */ virtual void performPopupMenuAction (int menuItemID); - /** Specifies a commmand-manager which the editor will notify whenever the state + /** Specifies a command-manager which the editor will notify whenever the state of any of its commands changes. If you're making use of the editor's ApplicationCommandTarget interface, then you should also use this to tell it which command manager it should use. Make diff --git a/modules/juce_gui_extra/embedding/juce_ScopedDPIAwarenessDisabler.h b/modules/juce_gui_extra/embedding/juce_ScopedDPIAwarenessDisabler.h index a769fba869..0b928019dd 100644 --- a/modules/juce_gui_extra/embedding/juce_ScopedDPIAwarenessDisabler.h +++ b/modules/juce_gui_extra/embedding/juce_ScopedDPIAwarenessDisabler.h @@ -36,7 +36,7 @@ namespace juce when it goes out of scope. If you create one of these before creating a top-level window, the window - will be DPI unaware and bitmap strectched by the OS on a display with >100% + will be DPI unaware and bitmap stretched by the OS on a display with >100% scaling. You shouldn't use this unless you really know what you are doing and diff --git a/modules/juce_gui_extra/misc/juce_BubbleMessageComponent.h b/modules/juce_gui_extra/misc/juce_BubbleMessageComponent.h index eaa29f7e0d..a3ad36aad4 100644 --- a/modules/juce_gui_extra/misc/juce_BubbleMessageComponent.h +++ b/modules/juce_gui_extra/misc/juce_BubbleMessageComponent.h @@ -70,7 +70,7 @@ public: @param position the coords of the object to point to @param message the text to display @param numMillisecondsBeforeRemoving how long to leave it on the screen before removing itself - from its parent compnent. If this is 0 or less, it + from its parent component. If this is 0 or less, it will stay there until manually removed. @param removeWhenMouseClicked if this is true, the bubble will disappear as soon as a mouse button is pressed (anywhere on the screen) @@ -93,7 +93,7 @@ public: @param component the component that you want to point at @param message the text to display @param numMillisecondsBeforeRemoving how long to leave it on the screen before removing itself - from its parent compnent. If this is 0 or less, it + from its parent component. If this is 0 or less, it will stay there until manually removed. @param removeWhenMouseClicked if this is true, the bubble will disappear as soon as a mouse button is pressed (anywhere on the screen) diff --git a/modules/juce_gui_extra/misc/juce_PushNotifications.h b/modules/juce_gui_extra/misc/juce_PushNotifications.h index 742486a50c..4b39f2c8aa 100644 --- a/modules/juce_gui_extra/misc/juce_PushNotifications.h +++ b/modules/juce_gui_extra/misc/juce_PushNotifications.h @@ -276,7 +276,7 @@ public: bool localOnly = true; /**< Optional: whether or not the notification should bridge to other devices. Available from Android API 20 or above. */ - bool ongoing = false; /**< Optional: If true, then it cannot be dismissed by the user and it must be dimissed manually. + bool ongoing = false; /**< Optional: If true, then it cannot be dismissed by the user and it must be dismissed manually. Typically used for ongoing background tasks that the user is actively engaged with. To dismiss such notification, you need to call removeDeliveredNotification() or removeAllDeliveredNotifications(). */ @@ -389,7 +389,7 @@ public: { using Action = Notification::Action; - /** Describes a category of a notification. Each category has a unique idenfifier + /** Describes a category of a notification. Each category has a unique identifier and a list of associated actions. Note that the OS may allow only a limited number of actions to be presented, so always present most important actions first. @@ -634,7 +634,7 @@ public: @param isLocalNotification If the notification is local @param notification The notification - @param actionIdentifier A String identifiing the action + @param actionIdentifier A String identifying the action @param optionalResponse Text response a user inputs for notifications with a text input. Empty for notifications without a text input option. diff --git a/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp b/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp index e44b8da39f..69c6500363 100644 --- a/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp +++ b/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp @@ -1303,7 +1303,7 @@ struct PushNotifications::Pimpl auto classAsString = LocalRef ((jstring) env->CallObjectMethod (objectClass, JavaClass.getName)); // Note: It seems that Firebase delivers values as strings always, so this check is rather unnecessary, - // at least untill they change the behaviour. + // at least until they change the behaviour. var value = juceString (classAsString) == "java.lang.Bundle" ? bundleToVar (object) : var (juceString (objectAsString.get())); dynamicObject->setProperty (juceString (key.get()), value); } diff --git a/modules/juce_gui_extra/native/juce_ios_PushNotifications.cpp b/modules/juce_gui_extra/native/juce_ios_PushNotifications.cpp index d15ddd0ce5..5f0aee26c9 100644 --- a/modules/juce_gui_extra/native/juce_ios_PushNotifications.cpp +++ b/modules/juce_gui_extra/native/juce_ios_PushNotifications.cpp @@ -174,7 +174,7 @@ namespace PushNotificationsDelegateDetails } // request - // each notification on iOS 10 needs to have an identifer, otherwise it will not show up + // each notification on iOS 10 needs to have an identifier, otherwise it will not show up jassert (n.identifier.isNotEmpty()); UNNotificationRequest* request = [UNNotificationRequest requestWithIdentifier: juceStringToNS (n.identifier) content: content diff --git a/modules/juce_opengl/native/juce_OpenGL_ios.h b/modules/juce_opengl/native/juce_OpenGL_ios.h index 24a849b967..c4fb799ca3 100644 --- a/modules/juce_opengl/native/juce_OpenGL_ios.h +++ b/modules/juce_opengl/native/juce_OpenGL_ios.h @@ -89,7 +89,7 @@ public: if (context != nil) { // I'd prefer to put this stuff in the initialiseOnRenderThread() call, but doing - // so causes myserious timing-related failures. + // so causes mysterious timing-related failures. [EAGLContext setCurrentContext: context]; createGLBuffers(); deactivateCurrentContext(); diff --git a/modules/juce_opengl/opengl/juce_OpenGLContext.h b/modules/juce_opengl/opengl/juce_OpenGLContext.h index a6871e80e4..c3fda19a63 100644 --- a/modules/juce_opengl/opengl/juce_OpenGLContext.h +++ b/modules/juce_opengl/opengl/juce_OpenGLContext.h @@ -248,7 +248,7 @@ public: This function can only be called if the context is attached to a component. Otherwise, this function will assert. - This function is useful when you need to excute house-keeping tasks such + This function is useful when you need to execute house-keeping tasks such as allocating, deallocating textures or framebuffers. As such, the functor will execute without locking the message thread. Therefore, it is not intended for any drawing commands or GUI code. Any GUI code should be @@ -273,7 +273,7 @@ public: */ unsigned int getFrameBufferID() const noexcept; - /** Returns an OS-dependent handle to some kind of underlting OS-provided GL context. + /** Returns an OS-dependent handle to some kind of underlying OS-provided GL context. The exact type of the value returned will depend on the OS and may change if the implementation changes. If you want to use this, digging around in the diff --git a/modules/juce_osc/osc/juce_OSCAddress.h b/modules/juce_osc/osc/juce_OSCAddress.h index 542bf93829..e24f2d5eab 100644 --- a/modules/juce_osc/osc/juce_OSCAddress.h +++ b/modules/juce_osc/osc/juce_OSCAddress.h @@ -130,7 +130,7 @@ public: bool matches (const OSCAddress& address) const noexcept; /** Checks whether the OSCAddressPattern contains any of the allowed OSC - address patttern wildcards: ?, *, [], {} + address pattern wildcards: ?, *, [], {} @returns true if the OSCAddressPattern contains OSC wildcards, false otherwise. */ diff --git a/modules/juce_osc/osc/juce_OSCTimeTag.h b/modules/juce_osc/osc/juce_OSCTimeTag.h index 29a5a0377b..a1e0d3b60d 100644 --- a/modules/juce_osc/osc/juce_OSCTimeTag.h +++ b/modules/juce_osc/osc/juce_OSCTimeTag.h @@ -70,7 +70,7 @@ public: */ Time toTime() const noexcept; - /** Returns true if the OSCTimeTag object has the special value representing "immedately". */ + /** Returns true if the OSCTimeTag object has the special value representing "immediately". */ bool isImmediately() const noexcept; /** Returns the raw binary OSC time tag representation. */ diff --git a/modules/juce_product_unlocking/marketplace/juce_OnlineUnlockForm.h b/modules/juce_product_unlocking/marketplace/juce_OnlineUnlockForm.h index b3b3d7c0f2..33a677f744 100644 --- a/modules/juce_product_unlocking/marketplace/juce_OnlineUnlockForm.h +++ b/modules/juce_product_unlocking/marketplace/juce_OnlineUnlockForm.h @@ -27,7 +27,7 @@ namespace juce { -/** Acts as a GUI which asks the user for their details, and calls the approriate +/** Acts as a GUI which asks the user for their details, and calls the appropriate methods on your OnlineUnlockStatus object to attempt to register the app. You should create one of these components and add it to your parent window, diff --git a/modules/juce_video/native/juce_android_CameraDevice.h b/modules/juce_video/native/juce_android_CameraDevice.h index 2eedb92191..ae1aa9e594 100644 --- a/modules/juce_video/native/juce_android_CameraDevice.h +++ b/modules/juce_video/native/juce_android_CameraDevice.h @@ -1608,7 +1608,7 @@ private: // When exception occurs, CameraCaptureSession.close will never finish, so // we should not wait for it. For fatal error an exception does occur, but - // it is catched internally in Java... + // it is caught internally in Java... if (jniCheckHasExceptionOccurredAndClear() || scopedCameraDevice.fatalErrorOccurred.get()) { JUCE_CAMERA_LOG ("Exception or fatal error occurred while closing Capture Session, closing by force"); diff --git a/modules/juce_video/native/juce_ios_CameraDevice.h b/modules/juce_video/native/juce_ios_CameraDevice.h index edefe326c1..18a881cfc4 100644 --- a/modules/juce_video/native/juce_ios_CameraDevice.h +++ b/modules/juce_video/native/juce_ios_CameraDevice.h @@ -746,7 +746,7 @@ private: JUCE_CAMERA_LOG ("Available image codec types: " + typesString); JUCE_CAMERA_LOG ("Still image stabilization supported: " + String ((int) stillImageOutput.stillImageStabilizationSupported)); - JUCE_CAMERA_LOG ("Automatically enableds still image stabilization when available: " + String ((int) stillImageOutput.automaticallyEnablesStillImageStabilizationWhenAvailable)); + JUCE_CAMERA_LOG ("Automatically enables still image stabilization when available: " + String ((int) stillImageOutput.automaticallyEnablesStillImageStabilizationWhenAvailable)); JUCE_CAMERA_LOG ("Output settings for image output: " + nsStringToJuce ([stillImageOutput.outputSettings description])); }