Browse Source

Minor whitespace tidying-up

tags/2021-05-28
Julian Storer 16 years ago
parent
commit
e1a5995965
12 changed files with 2404 additions and 2404 deletions
  1. +1
    -1
      extras/audio plugins/demo/src/JucePluginCharacteristics.h
  2. +1
    -1
      extras/audio plugins/wrapper/AU/juce_AU_Wrapper.mm
  3. +3
    -3
      extras/audio plugins/wrapper/RTAS/juce_RTAS_MacUtilities.mm
  4. +1003
    -1003
      extras/audio plugins/wrapper/RTAS/juce_RTAS_Wrapper.cpp
  5. +2
    -2
      extras/juce demo/src/demos/AudioDemoLatencyPage.cpp
  6. +1
    -1
      src/audio/devices/juce_AudioDeviceManager.h
  7. +2
    -2
      src/audio/midi/juce_MidiMessage.h
  8. +2
    -2
      src/gui/components/special/juce_WebBrowserComponent.h
  9. +13
    -13
      src/juce_app_includes.h
  10. +1
    -1
      src/native/mac/juce_mac_CarbonViewWrapperComponent.h
  11. +1374
    -1374
      src/native/mac/juce_mac_CoreAudio.cpp
  12. +1
    -1
      src/native/windows/juce_win32_SystemStats.cpp

+ 1
- 1
extras/audio plugins/demo/src/JucePluginCharacteristics.h View File

@@ -154,7 +154,7 @@
*/ */
#define JucePlugin_SilenceInProducesSilenceOut 0 #define JucePlugin_SilenceInProducesSilenceOut 0
/** If your plugin has a tail, you can set the length here and this information
/** If your plugin has a tail, you can set the length here and this information
will be passed on to the host. will be passed on to the host.
(Not all formats/hosts might actually use this, though) (Not all formats/hosts might actually use this, though)
*/ */


+ 1
- 1
extras/audio plugins/wrapper/AU/juce_AU_Wrapper.mm View File

@@ -1337,7 +1337,7 @@ private:
recursive = false; recursive = false;
} }
} }
bool keyPressed (const KeyPress& kp) bool keyPressed (const KeyPress& kp)
{ {
if (! kp.getModifiers().isCommandDown()) if (! kp.getModifiers().isCommandDown())


+ 3
- 3
extras/audio plugins/wrapper/RTAS/juce_RTAS_MacUtilities.mm View File

@@ -116,11 +116,11 @@ static bool isJuceWindow (WindowRef w) throw()
{ {
ComponentPeer* peer = ComponentPeer::getPeer(i); ComponentPeer* peer = ComponentPeer::getPeer(i);
NSView* view = (NSView*) peer->getNativeHandle(); NSView* view = (NSView*) peer->getNativeHandle();
if ([[view window] windowRef] == w) if ([[view window] windowRef] == w)
return true; return true;
} }
return false; return false;
} }
@@ -132,7 +132,7 @@ void forwardCurrentKeyEventToHostWindow()
while (IsValidWindowPtr (w) && isJuceWindow (w)) while (IsValidWindowPtr (w) && isJuceWindow (w))
{ {
w = GetNextWindowOfClass (w, kDocumentWindowClass, true); w = GetNextWindowOfClass (w, kDocumentWindowClass, true);
if (w == original) if (w == original)
break; break;
} }


+ 1003
- 1003
extras/audio plugins/wrapper/RTAS/juce_RTAS_Wrapper.cpp
File diff suppressed because it is too large
View File


+ 2
- 2
extras/juce demo/src/demos/AudioDemoLatencyPage.cpp View File

@@ -165,7 +165,7 @@ private:
int deviceInputLatency, deviceOutputLatency; int deviceInputLatency, deviceOutputLatency;
Array <int> spikes; Array <int> spikes;
void createTestSound() void createTestSound()
{ {
const int length = ((int) sampleRate) / 4; const int length = ((int) sampleRate) / 4;
@@ -186,7 +186,7 @@ private:
} }
} }
// Searches a buffer for a set of spikes that matches those in the test sound
// Searches a buffer for a set of spikes that matches those in the test sound
int findOffsetOfSpikes (const AudioSampleBuffer& buffer) const int findOffsetOfSpikes (const AudioSampleBuffer& buffer) const
{ {
const float minSpikeLevel = 5.0f; const float minSpikeLevel = 5.0f;


+ 1
- 1
src/audio/devices/juce_AudioDeviceManager.h View File

@@ -242,7 +242,7 @@ public:
void setCurrentAudioDeviceType (const String& type, void setCurrentAudioDeviceType (const String& type,
const bool treatAsChosenDevice); const bool treatAsChosenDevice);
/** Closes the currently-open device. /** Closes the currently-open device.
You can call restartLastAudioDevice() later to reopen it in the same state You can call restartLastAudioDevice() later to reopen it in the same state


+ 2
- 2
src/audio/midi/juce_MidiMessage.h View File

@@ -131,10 +131,10 @@ public:
The exact meaning of this time and its units will vary, as messages are used in The exact meaning of this time and its units will vary, as messages are used in
a variety of different contexts. a variety of different contexts.
If you're getting the message from a midi file, this could be a time in seconds, or If you're getting the message from a midi file, this could be a time in seconds, or
a number of ticks - see MidiFile::convertTimestampTicksToSeconds(). a number of ticks - see MidiFile::convertTimestampTicksToSeconds().
If the message is being used in a MidiBuffer, it might indicate the number of If the message is being used in a MidiBuffer, it might indicate the number of
audio samples from the start of the buffer. audio samples from the start of the buffer.


+ 2
- 2
src/gui/components/special/juce_WebBrowserComponent.h View File

@@ -49,8 +49,8 @@ public:
/** Creates a WebBrowserComponent. /** Creates a WebBrowserComponent.
Once it's created and visible, send the browser to a URL using goToURL(). Once it's created and visible, send the browser to a URL using goToURL().
@param unloadPageWhenBrowserIsHidden if this is true, then when the browser
@param unloadPageWhenBrowserIsHidden if this is true, then when the browser
component is taken offscreen, it'll clear the current page component is taken offscreen, it'll clear the current page
and replace it with a blank page - this can be handy to stop and replace it with a blank page - this can be handy to stop
the browser using resources in the background when it's not the browser using resources in the background when it's not


+ 13
- 13
src/juce_app_includes.h View File

@@ -53,14 +53,14 @@
#ifndef __JUCE_MIDIKEYBOARDSTATE_JUCEHEADER__ #ifndef __JUCE_MIDIKEYBOARDSTATE_JUCEHEADER__
#include "audio/midi/juce_MidiKeyboardState.h" #include "audio/midi/juce_MidiKeyboardState.h"
#endif #endif
#ifndef __JUCE_MIDIMESSAGE_JUCEHEADER__
#include "audio/midi/juce_MidiMessage.h"
#ifndef __JUCE_MIDIMESSAGESEQUENCE_JUCEHEADER__
#include "audio/midi/juce_MidiMessageSequence.h"
#endif #endif
#ifndef __JUCE_MIDIMESSAGECOLLECTOR_JUCEHEADER__ #ifndef __JUCE_MIDIMESSAGECOLLECTOR_JUCEHEADER__
#include "audio/midi/juce_MidiMessageCollector.h" #include "audio/midi/juce_MidiMessageCollector.h"
#endif #endif
#ifndef __JUCE_MIDIMESSAGESEQUENCE_JUCEHEADER__
#include "audio/midi/juce_MidiMessageSequence.h"
#ifndef __JUCE_MIDIMESSAGE_JUCEHEADER__
#include "audio/midi/juce_MidiMessage.h"
#endif #endif
#ifndef __JUCE_AUDIODATACONVERTERS_JUCEHEADER__ #ifndef __JUCE_AUDIODATACONVERTERS_JUCEHEADER__
#include "audio/dsp/juce_AudioDataConverters.h" #include "audio/dsp/juce_AudioDataConverters.h"
@@ -125,9 +125,6 @@
#ifndef __JUCE_RESAMPLINGAUDIOSOURCE_JUCEHEADER__ #ifndef __JUCE_RESAMPLINGAUDIOSOURCE_JUCEHEADER__
#include "audio/audio_sources/juce_ResamplingAudioSource.h" #include "audio/audio_sources/juce_ResamplingAudioSource.h"
#endif #endif
#ifndef __JUCE_AUDIODEVICEMANAGER_JUCEHEADER__
#include "audio/devices/juce_AudioDeviceManager.h"
#endif
#ifndef __JUCE_AUDIOIODEVICE_JUCEHEADER__ #ifndef __JUCE_AUDIOIODEVICE_JUCEHEADER__
#include "audio/devices/juce_AudioIODevice.h" #include "audio/devices/juce_AudioIODevice.h"
#endif #endif
@@ -140,6 +137,9 @@
#ifndef __JUCE_MIDIOUTPUT_JUCEHEADER__ #ifndef __JUCE_MIDIOUTPUT_JUCEHEADER__
#include "audio/devices/juce_MidiOutput.h" #include "audio/devices/juce_MidiOutput.h"
#endif #endif
#ifndef __JUCE_AUDIODEVICEMANAGER_JUCEHEADER__
#include "audio/devices/juce_AudioDeviceManager.h"
#endif
#ifndef __JUCE_SAMPLER_JUCEHEADER__ #ifndef __JUCE_SAMPLER_JUCEHEADER__
#include "audio/synthesisers/juce_Sampler.h" #include "audio/synthesisers/juce_Sampler.h"
#endif #endif
@@ -527,12 +527,12 @@
#ifndef __JUCE_TOOLBAR_JUCEHEADER__ #ifndef __JUCE_TOOLBAR_JUCEHEADER__
#include "gui/components/controls/juce_Toolbar.h" #include "gui/components/controls/juce_Toolbar.h"
#endif #endif
#ifndef __JUCE_TOOLBARITEMCOMPONENT_JUCEHEADER__
#include "gui/components/controls/juce_ToolbarItemComponent.h"
#endif
#ifndef __JUCE_TOOLBARITEMFACTORY_JUCEHEADER__ #ifndef __JUCE_TOOLBARITEMFACTORY_JUCEHEADER__
#include "gui/components/controls/juce_ToolbarItemFactory.h" #include "gui/components/controls/juce_ToolbarItemFactory.h"
#endif #endif
#ifndef __JUCE_TOOLBARITEMCOMPONENT_JUCEHEADER__
#include "gui/components/controls/juce_ToolbarItemComponent.h"
#endif
#ifndef __JUCE_TOOLBARITEMPALETTE_JUCEHEADER__ #ifndef __JUCE_TOOLBARITEMPALETTE_JUCEHEADER__
#include "gui/components/controls/juce_ToolbarItemPalette.h" #include "gui/components/controls/juce_ToolbarItemPalette.h"
#endif #endif
@@ -689,6 +689,9 @@
#ifndef __JUCE_DROPSHADOWER_JUCEHEADER__ #ifndef __JUCE_DROPSHADOWER_JUCEHEADER__
#include "gui/components/special/juce_DropShadower.h" #include "gui/components/special/juce_DropShadower.h"
#endif #endif
#ifndef __JUCE_WEBBROWSERCOMPONENT_JUCEHEADER__
#include "gui/components/special/juce_WebBrowserComponent.h"
#endif
#ifndef __JUCE_MAGNIFIERCOMPONENT_JUCEHEADER__ #ifndef __JUCE_MAGNIFIERCOMPONENT_JUCEHEADER__
#include "gui/components/special/juce_MagnifierComponent.h" #include "gui/components/special/juce_MagnifierComponent.h"
#endif #endif
@@ -707,9 +710,6 @@
#ifndef __JUCE_QUICKTIMEMOVIECOMPONENT_JUCEHEADER__ #ifndef __JUCE_QUICKTIMEMOVIECOMPONENT_JUCEHEADER__
#include "gui/components/special/juce_QuickTimeMovieComponent.h" #include "gui/components/special/juce_QuickTimeMovieComponent.h"
#endif #endif
#ifndef __JUCE_WEBBROWSERCOMPONENT_JUCEHEADER__
#include "gui/components/special/juce_WebBrowserComponent.h"
#endif
#ifndef __JUCE_SYSTEMTRAYICONCOMPONENT_JUCEHEADER__ #ifndef __JUCE_SYSTEMTRAYICONCOMPONENT_JUCEHEADER__
#include "gui/components/special/juce_SystemTrayIconComponent.h" #include "gui/components/special/juce_SystemTrayIconComponent.h"
#endif #endif


+ 1
- 1
src/native/mac/juce_mac_CarbonViewWrapperComponent.h View File

@@ -213,7 +213,7 @@ public:
child = HIViewGetNextView (child); child = HIViewGetNextView (child);
} }
} }
void timerCallback() void timerCallback()
{ {
setOurSizeToEmbeddedViewSize(); setOurSizeToEmbeddedViewSize();


+ 1374
- 1374
src/native/mac/juce_mac_CoreAudio.cpp
File diff suppressed because it is too large
View File


+ 1
- 1
src/native/windows/juce_win32_SystemStats.cpp View File

@@ -307,7 +307,7 @@ bool SystemStats::isOperatingSystem64Bit() throw()
int SystemStats::getMemorySizeInMegabytes() throw() int SystemStats::getMemorySizeInMegabytes() throw()
{ {
MEMORYSTATUSEX mem; MEMORYSTATUSEX mem;
mem.dwLength = sizeof (mem);
mem.dwLength = sizeof (mem);
GlobalMemoryStatusEx (&mem); GlobalMemoryStatusEx (&mem);
return (int) (mem.ullTotalPhys / (1024 * 1024)) + 1; return (int) (mem.ullTotalPhys / (1024 * 1024)) + 1;
} }


Loading…
Cancel
Save