From 4edb0d2c90ce741ae7c13ed48c827d7fc0aa0915 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 6 Sep 2019 11:41:27 +0100 Subject: [PATCH] Tidied up some divider comments --- .../Windows/jucer_AboutWindowComponent.h | 6 ++-- .../Source/Application/jucer_Application.cpp | 8 ++--- .../UI/Sidebar/jucer_ExporterTreeItems.h | 2 +- .../Project/UI/Sidebar/jucer_LiveBuildTab.h | 2 +- .../Project/UI/Sidebar/jucer_ProjectTab.h | 2 +- .../Project/UI/jucer_HeaderComponent.cpp | 22 ++++++------- .../Source/Project/UI/jucer_HeaderComponent.h | 20 ++++++------ .../UI/jucer_ModulesInformationComponent.h | 8 ++--- .../UI/jucer_ProjectContentComponent.cpp | 4 +-- .../ProjectSaving/jucer_ProjectExport_Xcode.h | 8 ++--- .../native/juce_android_Oboe.cpp | 2 +- .../native/juce_android_OpenSL.cpp | 4 +-- .../gui/juce_AudioAppComponent.h | 2 +- .../blocks/juce_TouchList.h | 2 +- .../topology/juce_PhysicalTopologySource.h | 4 +-- .../topology/juce_RuleBasedTopologySource.h | 4 +-- .../topology/juce_TopologySource.h | 6 ++-- .../juce_dsp/processors/juce_Oversampling.cpp | 32 +++++++++---------- .../juce_dsp/processors/juce_Oversampling.h | 16 +++++----- .../juce_gui_basics/layout/juce_SidePanel.cpp | 2 +- .../juce_gui_basics/layout/juce_SidePanel.h | 4 +-- .../misc/juce_PushNotifications.h | 20 ++++++------ .../native/juce_android_PushNotifications.cpp | 10 +++--- modules/juce_video/juce_video.h | 6 ++-- .../juce_video/native/juce_android_Video.h | 2 +- modules/juce_video/native/juce_win32_Video.h | 30 ++++++++--------- 26 files changed, 114 insertions(+), 114 deletions(-) diff --git a/extras/Projucer/Source/Application/Windows/jucer_AboutWindowComponent.h b/extras/Projucer/Source/Application/Windows/jucer_AboutWindowComponent.h index aa33c486c8..cdaae6cd76 100644 --- a/extras/Projucer/Source/Application/Windows/jucer_AboutWindowComponent.h +++ b/extras/Projucer/Source/Application/Windows/jucer_AboutWindowComponent.h @@ -81,19 +81,19 @@ public: auto leftSlice = bounds.removeFromLeft (150); auto centreSlice = bounds; - //====================================================================== + //============================================================================== rightSlice.removeFromRight (20); auto iconSlice = rightSlice.removeFromRight (100); huckleberryLogoBounds = iconSlice.removeFromBottom (100).toFloat(); - //====================================================================== + //============================================================================== juceLogoBounds = leftSlice.removeFromTop (150).toFloat(); juceLogoBounds.setWidth (juceLogoBounds.getWidth() + 100); juceLogoBounds.setHeight (juceLogoBounds.getHeight() + 100); copyrightLabel.setBounds (leftSlice.removeFromBottom (20)); - //====================================================================== + //============================================================================== auto titleHeight = 40; centreSlice.removeFromTop ((centreSlice.getHeight() / 2) - (titleHeight / 2)); diff --git a/extras/Projucer/Source/Application/jucer_Application.cpp b/extras/Projucer/Source/Application/jucer_Application.cpp index 67f20243f4..b1f8aef02b 100644 --- a/extras/Projucer/Source/Application/jucer_Application.cpp +++ b/extras/Projucer/Source/Application/jucer_Application.cpp @@ -510,7 +510,7 @@ void ProjucerApplication::createColourSchemeItems (PopupMenu& menu) menu.addSubMenu ("Colour Scheme", colourSchemeMenu); - //========================================================================== + //============================================================================== PopupMenu editorColourSchemeMenu; auto& appearanceSettings = getAppSettings().appearance; @@ -625,7 +625,7 @@ void ProjucerApplication::createExamplesPopupMenu (PopupMenu& menu) noexcept } } -//========================================================================== +//============================================================================== static File getJUCEExamplesDirectoryPathFromGlobal() { auto globalPath = File::createFileWithoutCheckingPath (getAppSettings().getStoredPath (Ids::jucePath, TargetOS::getThisOS()).get().toString() @@ -722,7 +722,7 @@ void ProjucerApplication::findAndLaunchExample (int selectedIndex) Analytics::getInstance()->logEvent ("Example Opened", data, ProjucerAnalyticsEvent::exampleEvent); } -//========================================================================== +//============================================================================== static String getPlatformSpecificFileExtension() { #if JUCE_MAC @@ -940,7 +940,7 @@ void ProjucerApplication::launchDemoRunner() } } -//========================================================================== +//============================================================================== void ProjucerApplication::handleMainMenuCommand (int menuItemID) { if (menuItemID >= recentProjectsBaseID && menuItemID < (recentProjectsBaseID + 100)) diff --git a/extras/Projucer/Source/Project/UI/Sidebar/jucer_ExporterTreeItems.h b/extras/Projucer/Source/Project/UI/Sidebar/jucer_ExporterTreeItems.h index 33a4a326b8..4cc84f0281 100644 --- a/extras/Projucer/Source/Project/UI/Sidebar/jucer_ExporterTreeItems.h +++ b/extras/Projucer/Source/Project/UI/Sidebar/jucer_ExporterTreeItems.h @@ -368,7 +368,7 @@ private: Project& project; ValueTree exportersTree; - //========================================================================== + //============================================================================== void valueTreeChildAdded (ValueTree& parentTree, ValueTree&) override { refreshIfNeeded (parentTree); } void valueTreeChildRemoved (ValueTree& parentTree, ValueTree&, int) override { refreshIfNeeded (parentTree); } void valueTreeChildOrderChanged (ValueTree& parentTree, int, int) override { refreshIfNeeded (parentTree); } diff --git a/extras/Projucer/Source/Project/UI/Sidebar/jucer_LiveBuildTab.h b/extras/Projucer/Source/Project/UI/Sidebar/jucer_LiveBuildTab.h index 11b215e7e0..096c53f66a 100644 --- a/extras/Projucer/Source/Project/UI/Sidebar/jucer_LiveBuildTab.h +++ b/extras/Projucer/Source/Project/UI/Sidebar/jucer_LiveBuildTab.h @@ -172,7 +172,7 @@ private: Rectangle textBounds; - //========================================================================== + //============================================================================== String getErrorMessage() { showDownloadButton = false; diff --git a/extras/Projucer/Source/Project/UI/Sidebar/jucer_ProjectTab.h b/extras/Projucer/Source/Project/UI/Sidebar/jucer_ProjectTab.h index bcd061f94b..dbeb8a1bff 100644 --- a/extras/Projucer/Source/Project/UI/Sidebar/jucer_ProjectTab.h +++ b/extras/Projucer/Source/Project/UI/Sidebar/jucer_ProjectTab.h @@ -27,7 +27,7 @@ #pragma once -//========================================================================== +//============================================================================== struct ProjectSettingsComponent : public Component, private ChangeListener { diff --git a/extras/Projucer/Source/Project/UI/jucer_HeaderComponent.cpp b/extras/Projucer/Source/Project/UI/jucer_HeaderComponent.cpp index 53b8a620e0..193fe17d1c 100644 --- a/extras/Projucer/Source/Project/UI/jucer_HeaderComponent.cpp +++ b/extras/Projucer/Source/Project/UI/jucer_HeaderComponent.cpp @@ -35,7 +35,7 @@ #include "../../LiveBuildEngine/jucer_DiagnosticMessage.h" #include "../../LiveBuildEngine/jucer_CompileEngineClient.h" -//====================================================================== +//============================================================================== HeaderComponent::HeaderComponent() { addAndMakeVisible (configLabel); @@ -66,13 +66,13 @@ HeaderComponent::~HeaderComponent() } } -//====================================================================== +//============================================================================== void HeaderComponent::resized() { auto bounds = getLocalBounds(); configLabel.setFont ({ bounds.getHeight() / 3.0f }); - //====================================================================== + //============================================================================== { auto headerBounds = bounds.removeFromLeft (tabsWidth); @@ -87,7 +87,7 @@ void HeaderComponent::resized() projectNameLabel.setBounds (headerBounds); } - //====================================================================== + //============================================================================== auto exporterWidth = jmin (400, bounds.getWidth() / 2); Rectangle exporterBounds (0, 0, exporterWidth, bounds.getHeight()); @@ -114,7 +114,7 @@ void HeaderComponent::paint (Graphics& g) runAppButton->getWidth(), runAppButton->getHeight()); } -//====================================================================== +//============================================================================== void HeaderComponent::setCurrentProject (Project* p) noexcept { project = p; @@ -148,7 +148,7 @@ void HeaderComponent::setCurrentProject (Project* p) noexcept } } -//====================================================================== +//============================================================================== void HeaderComponent::updateExporters() noexcept { auto selectedName = getSelectedExporterName(); @@ -203,7 +203,7 @@ bool HeaderComponent::canCurrentExporterLaunchProject() const noexcept return false; } -//====================================================================== +//============================================================================== int HeaderComponent::getUserButtonWidth() const noexcept { return userSettingsButton->getWidth(); @@ -215,7 +215,7 @@ void HeaderComponent::sidebarTabsWidthChanged (int newWidth) noexcept resized(); } -//====================================================================== +//============================================================================== void HeaderComponent::showUserSettings() noexcept { #if JUCER_ENABLE_GPL_MODE @@ -233,7 +233,7 @@ void HeaderComponent::showUserSettings() noexcept userSettingsWindow = &CallOutBox::launchAsynchronously (content, userSettingsButton->getScreenBounds(), nullptr); } -//========================================================================== +//============================================================================== void HeaderComponent::lookAndFeelChanged() { if (userSettingsWindow != nullptr) @@ -261,7 +261,7 @@ void HeaderComponent::timerCallback() repaint(); } -//====================================================================== +//============================================================================== static void sendProjectButtonAnalyticsEvent (StringRef label) { StringPairArray data; @@ -351,7 +351,7 @@ void HeaderComponent::updateUserAvatar() noexcept } } -//====================================================================== +//============================================================================== void HeaderComponent::buildPing() { if (! isTimerRunning()) diff --git a/extras/Projucer/Source/Project/UI/jucer_HeaderComponent.h b/extras/Projucer/Source/Project/UI/jucer_HeaderComponent.h index 540b3840ac..0ebac87326 100644 --- a/extras/Projucer/Source/Project/UI/jucer_HeaderComponent.h +++ b/extras/Projucer/Source/Project/UI/jucer_HeaderComponent.h @@ -43,33 +43,33 @@ public: HeaderComponent(); ~HeaderComponent() override; - //========================================================================== + //============================================================================== void resized() override; void paint (Graphics&) override; - //========================================================================== + //============================================================================== void setCurrentProject (Project*) noexcept; - //========================================================================== + //============================================================================== void updateExporters() noexcept; String getSelectedExporterName() const noexcept; bool canCurrentExporterLaunchProject() const noexcept; - //========================================================================== + //============================================================================== int getUserButtonWidth() const noexcept; void sidebarTabsWidthChanged (int newWidth) noexcept; - //========================================================================== + //============================================================================== void showUserSettings() noexcept; private: - //========================================================================== + //============================================================================== void lookAndFeelChanged() override; void changeListenerCallback (ChangeBroadcaster* source) override; void valueChanged (Value&) override; void timerCallback() override; - //========================================================================== + //============================================================================== void valueTreeChildAdded (ValueTree& parentTree, ValueTree&) override { updateIfNeeded (parentTree); } void valueTreeChildRemoved (ValueTree& parentTree, ValueTree&, int) override { updateIfNeeded (parentTree); } void valueTreeChildOrderChanged (ValueTree& parentTree, int, int) override { updateIfNeeded (parentTree); } @@ -80,19 +80,19 @@ private: updateExporters(); } - //========================================================================== + //============================================================================== void initialiseButtons() noexcept; void updateName() noexcept; void updateExporterButton() noexcept; void updateUserAvatar() noexcept; - //========================================================================== + //============================================================================== void buildPing(); void buildFinished (bool); void setRunAppButtonState (bool); - //========================================================================== + //============================================================================== int tabsWidth = 200; bool isBuilding = false; diff --git a/extras/Projucer/Source/Project/UI/jucer_ModulesInformationComponent.h b/extras/Projucer/Source/Project/UI/jucer_ModulesInformationComponent.h index 81a4c68f3b..0b2ef9f60a 100644 --- a/extras/Projucer/Source/Project/UI/jucer_ModulesInformationComponent.h +++ b/extras/Projucer/Source/Project/UI/jucer_ModulesInformationComponent.h @@ -122,24 +122,24 @@ public: bounds.removeFromLeft (5); g.setColour (rowIsSelected ? findColour (defaultHighlightedTextColourId) : findColour (widgetTextColourId)); - //====================================================================== + //============================================================================== auto moduleID = project.getEnabledModules().getModuleID (rowNumber); g.drawFittedText (moduleID, bounds.removeFromLeft (roundToInt (listHeader->getProportionAtIndex (0) * width)), Justification::centredLeft, 1); - //====================================================================== + //============================================================================== auto version = project.getEnabledModules().getModuleInfo (moduleID).getVersion(); if (version.isEmpty()) version = "?"; g.drawFittedText (version, bounds.removeFromLeft (roundToInt (listHeader->getProportionAtIndex (1) * width)), Justification::centredLeft, 1); - //====================================================================== + //============================================================================== auto copyLocally = project.getEnabledModules().shouldCopyModuleFilesLocally (moduleID).getValue() ? "Yes" : "No"; g.drawFittedText (copyLocally, bounds.removeFromLeft (roundToInt (listHeader->getProportionAtIndex (2) * width)), Justification::centredLeft, 1); - //====================================================================== + //============================================================================== String pathText; if (project.getEnabledModules().shouldUseGlobalPath (moduleID)) diff --git a/extras/Projucer/Source/Project/UI/jucer_ProjectContentComponent.cpp b/extras/Projucer/Source/Project/UI/jucer_ProjectContentComponent.cpp index 52d52045b6..8e3a367c3e 100644 --- a/extras/Projucer/Source/Project/UI/jucer_ProjectContentComponent.cpp +++ b/extras/Projucer/Source/Project/UI/jucer_ProjectContentComponent.cpp @@ -255,7 +255,7 @@ void ProjectContentComponent::rebuildProjectTabs() addAndMakeVisible (sidebarTabs); createProjectTabs(); - //====================================================================== + //============================================================================== auto& settings = project->getStoredProperties(); auto lastTreeWidth = settings.getValue ("projectPanelWidth").getIntValue(); @@ -271,7 +271,7 @@ void ProjectContentComponent::rebuildProjectTabs() projectTab->setPanelHeightProportion (i, settings.getValue ("projectTabPanelHeight" + String (i), "1") .getFloatValue()); - //====================================================================== + //============================================================================== resizerBar.reset (new ResizableEdgeComponent (&sidebarTabs, &sidebarSizeConstrainer, ResizableEdgeComponent::rightEdge)); addAndMakeVisible (resizerBar.get()); diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h index 3bd22f4190..9ff4a5af0c 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h @@ -627,7 +627,7 @@ protected: optimisationLevelValue.setDefault (isDebug() ? gccO0 : gccO3); } - //========================================================================== + //============================================================================== void createConfigProperties (PropertyListBuilder& props) override { addXcodePluginInstallPathProperties (props); @@ -684,7 +684,7 @@ protected: return "${CURRENT_ARCH}"; } - //========================================================================== + //============================================================================== String getOSXArchitectureString() const { return osxArchitecture.get(); } String getPListPreprocessorDefinitionsString() const { return plistPreprocessorDefinitions.get(); } @@ -711,7 +711,7 @@ protected: String getUnityPluginBinaryLocationString() const { return unityPluginBinaryLocation.get(); } private: - //========================================================================== + //============================================================================== bool iOS; ValueWithDefault osxSDKVersion, osxDeploymentTarget, iosDeploymentTarget, osxArchitecture, @@ -720,7 +720,7 @@ protected: vstBinaryLocation, vst3BinaryLocation, auBinaryLocation, rtasBinaryLocation, aaxBinaryLocation, unityPluginBinaryLocation; - //========================================================================== + //============================================================================== void addXcodePluginInstallPathProperties (PropertyListBuilder& props) { auto isBuildingAnyPlugins = (project.shouldBuildVST() || project.shouldBuildVST3() || project.shouldBuildAU() diff --git a/modules/juce_audio_devices/native/juce_android_Oboe.cpp b/modules/juce_audio_devices/native/juce_android_Oboe.cpp index 3fbf5fe78e..4d2025072a 100644 --- a/modules/juce_audio_devices/native/juce_android_Oboe.cpp +++ b/modules/juce_audio_devices/native/juce_android_Oboe.cpp @@ -1434,7 +1434,7 @@ public: } private: - //============================================================================= + //============================================================================== void* (*threadEntryProc) (void*) = nullptr; void* threadUserPtr = nullptr; diff --git a/modules/juce_audio_devices/native/juce_android_OpenSL.cpp b/modules/juce_audio_devices/native/juce_android_OpenSL.cpp index f5d287f5a9..7e67c1d006 100644 --- a/modules/juce_audio_devices/native/juce_android_OpenSL.cpp +++ b/modules/juce_audio_devices/native/juce_android_OpenSL.cpp @@ -1351,13 +1351,13 @@ public: } private: - //============================================================================= + //============================================================================== static void staticFinished (SLAndroidSimpleBufferQueueItf, void* context) { static_cast (context)->finished(); } - //============================================================================= + //============================================================================== DynamicLibrary slLibrary { "libOpenSLES.so" }; SlRef engine; diff --git a/modules/juce_audio_utils/gui/juce_AudioAppComponent.h b/modules/juce_audio_utils/gui/juce_AudioAppComponent.h index 02bd03b0eb..303632067a 100644 --- a/modules/juce_audio_utils/gui/juce_AudioAppComponent.h +++ b/modules/juce_audio_utils/gui/juce_AudioAppComponent.h @@ -125,7 +125,7 @@ public: AudioDeviceManager& deviceManager; private: - //============================================================================= + //============================================================================== AudioDeviceManager defaultDeviceManager; AudioSourcePlayer audioSourcePlayer; bool usingCustomDeviceManager; diff --git a/modules/juce_blocks_basics/blocks/juce_TouchList.h b/modules/juce_blocks_basics/blocks/juce_TouchList.h index 2b99311d3a..5f7287d939 100644 --- a/modules/juce_blocks_basics/blocks/juce_TouchList.h +++ b/modules/juce_blocks_basics/blocks/juce_TouchList.h @@ -137,7 +137,7 @@ public: void clear() noexcept { touches.clear(); } private: - //========================================================================== + //============================================================================== static bool matches (const TouchSurface::Touch& t1, const TouchSurface::Touch& t2) noexcept { diff --git a/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.h b/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.h index 390bf327c4..fa1be4124a 100644 --- a/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.h +++ b/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.h @@ -54,7 +54,7 @@ public: /** This method will tell, if an other PhysicalTopologySource has locked the Midi connection */ bool isLockedFromOutside() const; - //========================================================================== + //============================================================================== /** For custom transport systems, this represents a connected device */ struct DeviceConnection { @@ -86,7 +86,7 @@ protected: virtual void handleTimerTick(); private: - //========================================================================== + //============================================================================== DeviceDetector* customDetector = nullptr; friend struct Detector; struct DetectorHolder; diff --git a/modules/juce_blocks_basics/topology/juce_RuleBasedTopologySource.h b/modules/juce_blocks_basics/topology/juce_RuleBasedTopologySource.h index fb7e02d2cf..1e6baffbf0 100644 --- a/modules/juce_blocks_basics/topology/juce_RuleBasedTopologySource.h +++ b/modules/juce_blocks_basics/topology/juce_RuleBasedTopologySource.h @@ -43,7 +43,7 @@ public: /** Destructor. */ ~RuleBasedTopologySource() override; - //========================================================================== + //============================================================================== /** Returns the currently active topology. */ BlockTopology getCurrentTopology() const override; @@ -80,7 +80,7 @@ public: bool isActive() const override; private: - //========================================================================== + //============================================================================== struct Internal; std::unique_ptr internal; }; diff --git a/modules/juce_blocks_basics/topology/juce_TopologySource.h b/modules/juce_blocks_basics/topology/juce_TopologySource.h index 899288bfcb..d7360ba5bf 100644 --- a/modules/juce_blocks_basics/topology/juce_TopologySource.h +++ b/modules/juce_blocks_basics/topology/juce_TopologySource.h @@ -30,7 +30,7 @@ namespace juce class TopologySource { public: - //========================================================================== + //============================================================================== /** Destructor. */ virtual ~TopologySource() = default; @@ -43,7 +43,7 @@ public: /** Returns true, if the TopologySource is currently trying to connect the block devices */ virtual bool isActive() const = 0; - //========================================================================== + //============================================================================== /** Used to receive callbacks for topology changes */ struct Listener { @@ -71,7 +71,7 @@ public: virtual void cancelAllActiveTouches() noexcept {} protected: - //========================================================================== + //============================================================================== ListenerList listeners; }; diff --git a/modules/juce_dsp/processors/juce_Oversampling.cpp b/modules/juce_dsp/processors/juce_Oversampling.cpp index 17b6c32a31..a7b1c8f66b 100644 --- a/modules/juce_dsp/processors/juce_Oversampling.cpp +++ b/modules/juce_dsp/processors/juce_Oversampling.cpp @@ -38,7 +38,7 @@ struct Oversampling::OversamplingStage OversamplingStage (size_t numChans, size_t newFactor) : numChannels (numChans), factor (newFactor) {} virtual ~OversamplingStage() {} - //=============================================================================== + //============================================================================== virtual SampleType getLatencyInSamples() = 0; virtual void initProcessing (size_t maximumNumberOfSamplesBeforeOversampling) @@ -66,7 +66,7 @@ struct Oversampling::OversamplingStage }; -//=============================================================================== +//============================================================================== /** Dummy oversampling stage class which simply copies and pastes the input signal, which could be equivalent to a "one time" oversampling processing. */ @@ -77,7 +77,7 @@ struct OversamplingDummy : public Oversampling::OversamplingStage OversamplingDummy (size_t numChans) : ParentType (numChans, 1) {} - //=============================================================================== + //============================================================================== SampleType getLatencyInSamples() override { return 0; @@ -104,7 +104,7 @@ struct OversamplingDummy : public Oversampling::OversamplingStage JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (OversamplingDummy) }; -//=============================================================================== +//============================================================================== /** Oversampling stage class performing 2 times oversampling using the Filter Design FIR Equiripple method. The resulting filter is linear phase, symmetric, and has every two samples but the middle one equal to zero, @@ -138,7 +138,7 @@ struct Oversampling2TimesEquirippleFIR : public Oversampling::Overs position.resize (static_cast (this->numChannels)); } - //=============================================================================== + //============================================================================== SampleType getLatencyInSamples() override { return static_cast (coefficientsUp.getFilterOrder() + coefficientsDown.getFilterOrder()) * 0.5f; @@ -247,17 +247,17 @@ struct Oversampling2TimesEquirippleFIR : public Oversampling::Overs } private: - //=============================================================================== + //============================================================================== dsp::FIR::Coefficients coefficientsUp, coefficientsDown; AudioBuffer stateUp, stateDown, stateDown2; Array position; - //=============================================================================== + //============================================================================== JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Oversampling2TimesEquirippleFIR) }; -//=============================================================================== +//============================================================================== /** Oversampling stage class performing 2 times oversampling using the Filter Design IIR Polyphase Allpass Cascaded method. The resulting filter is minimum phase, and provided with a method to get the exact resulting latency. @@ -299,7 +299,7 @@ struct Oversampling2TimesPolyphaseIIR : public Oversampling::Oversa delayDown.resize (static_cast (this->numChannels)); } - //=============================================================================== + //============================================================================== SampleType getLatencyInSamples() override { return latency; @@ -453,7 +453,7 @@ struct Oversampling2TimesPolyphaseIIR : public Oversampling::Oversa } private: - //=============================================================================== + //============================================================================== /** This function calculates the equivalent high order IIR filter of a given polyphase cascaded allpass filters structure. */ @@ -515,19 +515,19 @@ private: return coeffs; } - //=============================================================================== + //============================================================================== Array coefficientsUp, coefficientsDown; SampleType latency; AudioBuffer v1Up, v1Down; Array delayDown; - //=============================================================================== + //============================================================================== JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Oversampling2TimesPolyphaseIIR) }; -//=============================================================================== +//============================================================================== template Oversampling::Oversampling (size_t newNumChannels) : numChannels (newNumChannels) @@ -590,7 +590,7 @@ Oversampling::~Oversampling() stages.clear(); } -//=============================================================================== +//============================================================================== template void Oversampling::addDummyOversamplingStage() { @@ -627,7 +627,7 @@ void Oversampling::clearOversamplingStages() factorOversampling = 1u; } -//=============================================================================== +//============================================================================== template SampleType Oversampling::getLatencyInSamples() noexcept { @@ -649,7 +649,7 @@ size_t Oversampling::getOversamplingFactor() noexcept return factorOversampling; } -//=============================================================================== +//============================================================================== template void Oversampling::initProcessing (size_t maximumNumberOfSamplesBeforeOversampling) { diff --git a/modules/juce_dsp/processors/juce_Oversampling.h b/modules/juce_dsp/processors/juce_Oversampling.h index 7c428180df..e4fbb9db09 100644 --- a/modules/juce_dsp/processors/juce_Oversampling.h +++ b/modules/juce_dsp/processors/juce_Oversampling.h @@ -29,7 +29,7 @@ namespace juce namespace dsp { -//=============================================================================== +//============================================================================== /** A processing class performing multi-channel oversampling. @@ -65,7 +65,7 @@ public: numFilterTypes }; - //=============================================================================== + //============================================================================== /** Constructor of the oversampling class. All the processing parameters must be provided at the creation of the oversampling object. @@ -96,7 +96,7 @@ public: /** Destructor. */ ~Oversampling(); - //=============================================================================== + //============================================================================== /** Returns the latency in samples of the whole processing. Use this information in your main processor to compensate the additional latency involved with the oversampling, for example with a dry / wet functionality, and to report @@ -110,7 +110,7 @@ public: /** Returns the current oversampling factor. */ size_t getOversamplingFactor() noexcept; - //=============================================================================== + //============================================================================== /** Must be called before any processing, to set the buffer sizes of the internal buffers of the oversampling processing. */ @@ -135,7 +135,7 @@ public: */ void processSamplesDown (dsp::AudioBlock& outputBlock) noexcept; - //=============================================================================== + //============================================================================== /** Adds a new oversampling stage to the Oversampling class, multiplying the current oversampling factor by two. This is used with the default constructor to create custom oversampling chains, requiring a call to the @@ -179,7 +179,7 @@ public: */ void clearOversamplingStages(); - //=============================================================================== + //============================================================================== size_t factorOversampling = 1; size_t numChannels = 1; @@ -188,11 +188,11 @@ public: #endif private: - //=============================================================================== + //============================================================================== OwnedArray stages; bool isReady = false; - //=============================================================================== + //============================================================================== JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Oversampling) }; diff --git a/modules/juce_gui_basics/layout/juce_SidePanel.cpp b/modules/juce_gui_basics/layout/juce_SidePanel.cpp index 70c21dc178..e674a52d33 100644 --- a/modules/juce_gui_basics/layout/juce_SidePanel.cpp +++ b/modules/juce_gui_basics/layout/juce_SidePanel.cpp @@ -219,7 +219,7 @@ void SidePanel::mouseUp (const MouseEvent&) } } -//========================================================================== +//============================================================================== void SidePanel::lookAndFeelChanged() { auto& lf = getLookAndFeel(); diff --git a/modules/juce_gui_basics/layout/juce_SidePanel.h b/modules/juce_gui_basics/layout/juce_SidePanel.h index 9753ab6b97..8d7992e99d 100644 --- a/modules/juce_gui_basics/layout/juce_SidePanel.h +++ b/modules/juce_gui_basics/layout/juce_SidePanel.h @@ -193,7 +193,7 @@ public: std::function onPanelShowHide; private: - //========================================================================== + //============================================================================== Component* parent = nullptr; OptionalScopedPointer contentComponent; OptionalScopedPointer titleBarComponent; @@ -216,7 +216,7 @@ private: bool shouldShowDismissButton = true; - //========================================================================== + //============================================================================== void lookAndFeelChanged() override; void componentMovedOrResized (Component&, bool wasMoved, bool wasResized) override; diff --git a/modules/juce_gui_extra/misc/juce_PushNotifications.h b/modules/juce_gui_extra/misc/juce_PushNotifications.h index ec98d62495..742486a50c 100644 --- a/modules/juce_gui_extra/misc/juce_PushNotifications.h +++ b/modules/juce_gui_extra/misc/juce_PushNotifications.h @@ -50,7 +50,7 @@ public: JUCE_DECLARE_SINGLETON (PushNotifications, false) #endif - //========================================================================== + //============================================================================== /** Represents a notification that can be sent or received. */ struct Notification { @@ -107,7 +107,7 @@ public: /**@}*/ }; - //========================================================================== + //============================================================================== /** @name Common fields */ /**@{*/ @@ -149,7 +149,7 @@ public: /**@}*/ - //========================================================================== + //============================================================================== /** @name iOS only fields */ /**@{*/ @@ -161,7 +161,7 @@ public: /**@}*/ - //========================================================================== + //============================================================================== /** @name Android only fields */ /**@{*/ @@ -323,7 +323,7 @@ public: }; - //========================================================================== + //============================================================================== /** Describes settings we want to use for current device. Note that at the moment this is only used on iOS and partially on OSX. @@ -438,7 +438,7 @@ public: */ void requestSettingsUsed(); - //========================================================================== + //============================================================================== /** Android API level 26 or higher only: Represents notification channel through which notifications will be sent. Starting from Android API level 26, you should call setupChannels() at the start of your application, before posting any notifications. Then, when sending notifications, @@ -491,7 +491,7 @@ public: */ void setupChannels (const Array& groups, const Array& channels); - //========================================================================== + //============================================================================== /** iOS only: sends an asynchronous request to retrieve a list of notifications that were scheduled and not yet delivered. @@ -505,7 +505,7 @@ public: /** Unschedules all pending local notifications. iOS only. */ void removeAllPendingLocalNotifications(); - //========================================================================== + //============================================================================== /** Checks whether notifications are enabled for given application. On iOS and OSX this will always return true, use requestSettingsUsed() instead. */ @@ -535,7 +535,7 @@ public: /** Removes all notifications that were delivered. */ void removeAllDeliveredNotifications(); - //========================================================================== + //============================================================================== /** Retrieves current device token. Note, it is not a good idea to cache this token because it may change in the meantime. Always call this method to get the current token value. @@ -587,7 +587,7 @@ public: int timeToLive, const StringPairArray& additionalData); - //========================================================================== + //============================================================================== /** Register a listener (ideally on application startup) to receive information about notifications received and any callbacks to async functions called. */ diff --git a/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp b/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp index 41bd3de2e0..9d77b2cb38 100644 --- a/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp +++ b/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp @@ -189,7 +189,7 @@ DECLARE_JNI_CLASS_WITH_MIN_SDK (RemoteInputBuilder, "android/app/RemoteInput$Bui DECLARE_JNI_CLASS_WITH_MIN_SDK (StatusBarNotification, "android/service/notification/StatusBarNotification", 23) #undef JNI_CLASS_MEMBERS -//========================================================================== +//============================================================================== #if defined(JUCE_FIREBASE_INSTANCE_ID_SERVICE_CLASSNAME) #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \ STATICMETHOD (getInstance, "getInstance", "()Lcom/google/firebase/iid/FirebaseInstanceId;") \ @@ -265,7 +265,7 @@ bool PushNotifications::Notification::isValid() const noexcept return isValidForPreApi26; } -//========================================================================== +//============================================================================== struct PushNotifications::Pimpl { Pimpl (PushNotifications& p) @@ -287,7 +287,7 @@ struct PushNotifications::Pimpl return true; } - //========================================================================== + //============================================================================== void sendLocalNotification (const PushNotifications::Notification& n) { // All required fields have to be setup! @@ -434,7 +434,7 @@ struct PushNotifications::Pimpl } } - //========================================================================== + //============================================================================== String getDeviceToken() const { #if defined(JUCE_FIREBASE_INSTANCE_ID_SERVICE_CLASSNAME) @@ -460,7 +460,7 @@ struct PushNotifications::Pimpl #endif } - //========================================================================== + //============================================================================== void subscribeToTopic (const String& topic) { #if defined(JUCE_FIREBASE_MESSAGING_SERVICE_CLASSNAME) diff --git a/modules/juce_video/juce_video.h b/modules/juce_video/juce_video.h index 1e12c76caf..1f43beb125 100644 --- a/modules/juce_video/juce_video.h +++ b/modules/juce_video/juce_video.h @@ -57,7 +57,7 @@ //============================================================================== #include -//============================================================================= +//============================================================================== /** Config: JUCE_USE_CAMERA Enables camera support using the CameraDevice class (Mac, Windows, iOS, Android). */ @@ -79,7 +79,7 @@ #undef JUCE_USE_CAMERA #endif -//============================================================================= +//============================================================================== /** Config: JUCE_SYNC_VIDEO_VOLUME_WITH_OS_MEDIA_VOLUME Enables synchronisation between video playback volume and OS media volume. Currently supported on Android only. @@ -98,6 +98,6 @@ #define JUCE_VIDEO_LOG(x) {} #endif -//============================================================================= +//============================================================================== #include "playback/juce_VideoComponent.h" #include "capture/juce_CameraDevice.h" diff --git a/modules/juce_video/native/juce_android_Video.h b/modules/juce_video/native/juce_android_Video.h index 7c7beeadcc..5b64a881ca 100644 --- a/modules/juce_video/native/juce_android_Video.h +++ b/modules/juce_video/native/juce_android_Video.h @@ -1032,7 +1032,7 @@ private: } private: - //============================================================================= + //============================================================================== struct StateInfo { int playbackStateFlag = 0, allowedActions = 0; diff --git a/modules/juce_video/native/juce_win32_Video.h b/modules/juce_video/native/juce_win32_Video.h index 2e3e4a19aa..b162ba29c4 100644 --- a/modules/juce_video/native/juce_win32_Video.h +++ b/modules/juce_video/native/juce_win32_Video.h @@ -26,7 +26,7 @@ namespace VideoRenderers { - //====================================================================== + //============================================================================== struct Base { virtual ~Base() {} @@ -39,7 +39,7 @@ namespace VideoRenderers virtual HRESULT getVideoSize (long& videoWidth, long& videoHeight) = 0; }; - //====================================================================== + //============================================================================== struct VMR7 : public Base { VMR7() {} @@ -99,7 +99,7 @@ namespace VideoRenderers }; - //====================================================================== + //============================================================================== struct EVR : public Base { EVR() {} @@ -390,7 +390,7 @@ private: std::unique_ptr componentWatcher; - //====================================================================== + //============================================================================== struct DirectShowContext : public AsyncUpdater { DirectShowContext (Pimpl& c) : component (c) @@ -404,7 +404,7 @@ private: CoUninitialize(); } - //====================================================================== + //============================================================================== void updateWindowPosition (const Rectangle& newBounds) { nativeWindow->setWindowPosition (newBounds); @@ -415,7 +415,7 @@ private: nativeWindow->showWindow (shouldBeVisible); } - //====================================================================== + //============================================================================== void repaint() { if (hasVideo) @@ -434,7 +434,7 @@ private: videoRenderer->displayModeChanged(); } - //====================================================================== + //============================================================================== void peerChanged() { deleteNativeWindow(); @@ -489,7 +489,7 @@ private: triggerAsyncUpdate(); } - //====================================================================== + //============================================================================== Result loadFile (const String& fileOrURLPath) { jassert (state == uninitializedState); @@ -668,7 +668,7 @@ private: } } - //====================================================================== + //============================================================================== void play() { mediaControl->Run(); @@ -687,7 +687,7 @@ private: state = pausedState; } - //====================================================================== + //============================================================================== Rectangle getVideoSize() const noexcept { long width = 0, height = 0; @@ -698,7 +698,7 @@ private: return { (int) width, (int) height }; } - //====================================================================== + //============================================================================== double getDuration() const { REFTIME duration; @@ -744,7 +744,7 @@ private: State state = uninitializedState; private: - //====================================================================== + //============================================================================== enum { graphEventID = WM_APP + 0x43f0 }; Pimpl& component; @@ -762,7 +762,7 @@ private: bool hasVideo = false, needToUpdateViewport = true, needToRecreateNativeWindow = false; - //====================================================================== + //============================================================================== bool createNativeWindow() { jassert (nativeWindow == nullptr); @@ -839,7 +839,7 @@ private: return false; } - //====================================================================== + //============================================================================== struct NativeWindowClass : private DeletedAtShutdown { bool isRegistered() const noexcept { return atom != 0; } @@ -899,7 +899,7 @@ private: JUCE_DECLARE_NON_COPYABLE (NativeWindowClass) }; - //====================================================================== + //============================================================================== struct NativeWindow { NativeWindow (HWND parentToAddTo, void* userData)