| @@ -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) | ||||
| */ | */ | ||||
| @@ -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()) | ||||
| @@ -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; | ||||
| } | } | ||||
| @@ -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; | ||||
| @@ -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 | ||||
| @@ -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. | ||||
| @@ -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 | ||||
| @@ -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 | ||||
| @@ -213,7 +213,7 @@ public: | |||||
| child = HIViewGetNextView (child); | child = HIViewGetNextView (child); | ||||
| } | } | ||||
| } | } | ||||
| void timerCallback() | void timerCallback() | ||||
| { | { | ||||
| setOurSizeToEmbeddedViewSize(); | setOurSizeToEmbeddedViewSize(); | ||||
| @@ -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; | ||||
| } | } | ||||