mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Hard-coded some juce namespace declarations.
This commit is contained in:
parent
d3bcbeef9c
commit
4808d9c318
47 changed files with 170 additions and 173 deletions
|
|
@ -305,7 +305,7 @@ private:
|
|||
<< "#if ! DONT_SET_USING_JUCE_NAMESPACE" << newLine
|
||||
<< " // If your code uses a lot of JUCE classes, then this will obviously save you" << newLine
|
||||
<< " // a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE." << newLine
|
||||
<< " using namespace JUCE_NAMESPACE;" << newLine
|
||||
<< " using namespace juce;" << newLine
|
||||
<< "#endif" << newLine
|
||||
<< newLine
|
||||
<< "namespace ProjectInfo" << newLine
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
#if ! DONT_SET_USING_JUCE_NAMESPACE
|
||||
// If your code uses a lot of JUCE classes, then this will obviously save you
|
||||
// a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE.
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
#endif
|
||||
|
||||
namespace ProjectInfo
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#if ! DONT_SET_USING_JUCE_NAMESPACE
|
||||
// If your code uses a lot of JUCE classes, then this will obviously save you
|
||||
// a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE.
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
#endif
|
||||
|
||||
namespace ProjectInfo
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
#if ! DONT_SET_USING_JUCE_NAMESPACE
|
||||
// If your code uses a lot of JUCE classes, then this will obviously save you
|
||||
// a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE.
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
#endif
|
||||
|
||||
namespace ProjectInfo
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@
|
|||
#include "AppConfig.h"
|
||||
#include "../../../modules/juce_browser_plugin/juce_browser_plugin.h"
|
||||
|
||||
#if defined (JUCE_NAMESPACE) && ! DONT_SET_USING_JUCE_NAMESPACE
|
||||
#if ! DONT_SET_USING_JUCE_NAMESPACE
|
||||
/* If you're not mixing JUCE with other libraries, then this will obviously save
|
||||
a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE.
|
||||
*/
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#if ! DONT_SET_USING_JUCE_NAMESPACE
|
||||
// If your code uses a lot of JUCE classes, then this will obviously save you
|
||||
// a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE.
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
#endif
|
||||
|
||||
namespace ProjectInfo
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#if ! DONT_SET_USING_JUCE_NAMESPACE
|
||||
// If your code uses a lot of JUCE classes, then this will obviously save you
|
||||
// a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE.
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
#endif
|
||||
|
||||
namespace ProjectInfo
|
||||
|
|
|
|||
|
|
@ -29,11 +29,11 @@
|
|||
#include "../../../modules/juce_opengl/juce_opengl.h"
|
||||
#include "../../../modules/juce_video/juce_video.h"
|
||||
|
||||
#if defined (JUCE_NAMESPACE) && ! DONT_SET_USING_JUCE_NAMESPACE
|
||||
#if ! DONT_SET_USING_JUCE_NAMESPACE
|
||||
/* If you're not mixing JUCE with other libraries, then this will obviously save
|
||||
a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE.
|
||||
*/
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
#endif
|
||||
|
||||
namespace ProjectInfo
|
||||
|
|
|
|||
4
juce.h
4
juce.h
|
|
@ -61,11 +61,11 @@
|
|||
|
||||
|
||||
//==============================================================================
|
||||
#if defined (JUCE_NAMESPACE) && ! DONT_SET_USING_JUCE_NAMESPACE
|
||||
#if ! DONT_SET_USING_JUCE_NAMESPACE
|
||||
/* If you're not mixing JUCE with other libraries, then this will obviously save
|
||||
a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE.
|
||||
*/
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
#endif
|
||||
|
||||
#endif // __JUCE_JUCEHEADER__
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@
|
|||
// END_AUTOINCLUDE
|
||||
|
||||
//==============================================================================
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
BEGIN_JUCE_NAMESPACE
|
||||
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ public:
|
|||
jassert (deviceName.isNotEmpty());
|
||||
|
||||
jack_status_t status;
|
||||
client = JUCE_NAMESPACE::jack_client_open (JUCE_JACK_CLIENT_NAME, JackNoStartServer, &status);
|
||||
client = juce::jack_client_open (JUCE_JACK_CLIENT_NAME, JackNoStartServer, &status);
|
||||
|
||||
if (client == 0)
|
||||
{
|
||||
|
|
@ -131,7 +131,7 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
JUCE_NAMESPACE::jack_set_error_function (errorCallback);
|
||||
juce::jack_set_error_function (errorCallback);
|
||||
|
||||
// open input ports
|
||||
const StringArray inputChannels (getInputChannelNames());
|
||||
|
|
@ -140,8 +140,8 @@ public:
|
|||
String inputName;
|
||||
inputName << "in_" << ++totalNumberOfInputChannels;
|
||||
|
||||
inputPorts.add (JUCE_NAMESPACE::jack_port_register (client, inputName.toUTF8(),
|
||||
JACK_DEFAULT_AUDIO_TYPE, JackPortIsInput, 0));
|
||||
inputPorts.add (juce::jack_port_register (client, inputName.toUTF8(),
|
||||
JACK_DEFAULT_AUDIO_TYPE, JackPortIsInput, 0));
|
||||
}
|
||||
|
||||
// open output ports
|
||||
|
|
@ -151,8 +151,8 @@ public:
|
|||
String outputName;
|
||||
outputName << "out_" << ++totalNumberOfOutputChannels;
|
||||
|
||||
outputPorts.add (JUCE_NAMESPACE::jack_port_register (client, outputName.toUTF8(),
|
||||
JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0));
|
||||
outputPorts.add (juce::jack_port_register (client, outputName.toUTF8(),
|
||||
JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0));
|
||||
}
|
||||
|
||||
inChans.calloc (totalNumberOfInputChannels + 2);
|
||||
|
|
@ -165,7 +165,7 @@ public:
|
|||
close();
|
||||
if (client != 0)
|
||||
{
|
||||
JUCE_NAMESPACE::jack_client_close (client);
|
||||
juce::jack_client_close (client);
|
||||
client = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -173,8 +173,8 @@ public:
|
|||
StringArray getChannelNames (bool forInput) const
|
||||
{
|
||||
StringArray names;
|
||||
const char** const ports = JUCE_NAMESPACE::jack_get_ports (client, 0, 0, /* JackPortIsPhysical | */
|
||||
forInput ? JackPortIsInput : JackPortIsOutput);
|
||||
const char** const ports = juce::jack_get_ports (client, 0, 0, /* JackPortIsPhysical | */
|
||||
forInput ? JackPortIsInput : JackPortIsOutput);
|
||||
|
||||
if (ports != 0)
|
||||
{
|
||||
|
|
@ -196,10 +196,10 @@ public:
|
|||
StringArray getOutputChannelNames() { return getChannelNames (false); }
|
||||
StringArray getInputChannelNames() { return getChannelNames (true); }
|
||||
int getNumSampleRates() { return client != 0 ? 1 : 0; }
|
||||
double getSampleRate (int index) { return client != 0 ? JUCE_NAMESPACE::jack_get_sample_rate (client) : 0; }
|
||||
double getSampleRate (int index) { return client != 0 ? juce::jack_get_sample_rate (client) : 0; }
|
||||
int getNumBufferSizesAvailable() { return client != 0 ? 1 : 0; }
|
||||
int getBufferSizeSamples (int index) { return getDefaultBufferSize(); }
|
||||
int getDefaultBufferSize() { return client != 0 ? JUCE_NAMESPACE::jack_get_buffer_size (client) : 0; }
|
||||
int getDefaultBufferSize() { return client != 0 ? juce::jack_get_buffer_size (client) : 0; }
|
||||
|
||||
String open (const BigInteger& inputChannels, const BigInteger& outputChannels,
|
||||
double sampleRate, int bufferSizeSamples)
|
||||
|
|
@ -213,14 +213,14 @@ public:
|
|||
lastError = String::empty;
|
||||
close();
|
||||
|
||||
JUCE_NAMESPACE::jack_set_process_callback (client, processCallback, this);
|
||||
JUCE_NAMESPACE::jack_on_shutdown (client, shutdownCallback, this);
|
||||
JUCE_NAMESPACE::jack_activate (client);
|
||||
juce::jack_set_process_callback (client, processCallback, this);
|
||||
juce::jack_on_shutdown (client, shutdownCallback, this);
|
||||
juce::jack_activate (client);
|
||||
isOpen_ = true;
|
||||
|
||||
if (! inputChannels.isZero())
|
||||
{
|
||||
const char** const ports = JUCE_NAMESPACE::jack_get_ports (client, 0, 0, /* JackPortIsPhysical | */ JackPortIsOutput);
|
||||
const char** const ports = juce::jack_get_ports (client, 0, 0, /* JackPortIsPhysical | */ JackPortIsOutput);
|
||||
|
||||
if (ports != 0)
|
||||
{
|
||||
|
|
@ -232,7 +232,7 @@ public:
|
|||
|
||||
if (inputChannels[i] && portName.upToFirstOccurrenceOf (":", false, false) == getName())
|
||||
{
|
||||
int error = JUCE_NAMESPACE::jack_connect (client, ports[i], JUCE_NAMESPACE::jack_port_name ((jack_port_t*) inputPorts[i]));
|
||||
int error = juce::jack_connect (client, ports[i], juce::jack_port_name ((jack_port_t*) inputPorts[i]));
|
||||
if (error != 0)
|
||||
jack_Log ("Cannot connect input port " + String (i) + " (" + String (ports[i]) + "), error " + String (error));
|
||||
}
|
||||
|
|
@ -244,7 +244,7 @@ public:
|
|||
|
||||
if (! outputChannels.isZero())
|
||||
{
|
||||
const char** const ports = JUCE_NAMESPACE::jack_get_ports (client, 0, 0, /* JackPortIsPhysical | */ JackPortIsInput);
|
||||
const char** const ports = juce::jack_get_ports (client, 0, 0, /* JackPortIsPhysical | */ JackPortIsInput);
|
||||
|
||||
if (ports != 0)
|
||||
{
|
||||
|
|
@ -256,7 +256,7 @@ public:
|
|||
|
||||
if (outputChannels[i] && portName.upToFirstOccurrenceOf (":", false, false) == getName())
|
||||
{
|
||||
int error = JUCE_NAMESPACE::jack_connect (client, JUCE_NAMESPACE::jack_port_name ((jack_port_t*) outputPorts[i]), ports[i]);
|
||||
int error = juce::jack_connect (client, juce::jack_port_name ((jack_port_t*) outputPorts[i]), ports[i]);
|
||||
if (error != 0)
|
||||
jack_Log ("Cannot connect output port " + String (i) + " (" + String (ports[i]) + "), error " + String (error));
|
||||
}
|
||||
|
|
@ -275,9 +275,9 @@ public:
|
|||
|
||||
if (client != 0)
|
||||
{
|
||||
JUCE_NAMESPACE::jack_deactivate (client);
|
||||
JUCE_NAMESPACE::jack_set_process_callback (client, processCallback, 0);
|
||||
JUCE_NAMESPACE::jack_on_shutdown (client, shutdownCallback, 0);
|
||||
juce::jack_deactivate (client);
|
||||
juce::jack_set_process_callback (client, processCallback, 0);
|
||||
juce::jack_on_shutdown (client, shutdownCallback, 0);
|
||||
}
|
||||
|
||||
isOpen_ = false;
|
||||
|
|
@ -319,7 +319,7 @@ public:
|
|||
BigInteger outputBits;
|
||||
|
||||
for (int i = 0; i < outputPorts.size(); i++)
|
||||
if (JUCE_NAMESPACE::jack_port_connected ((jack_port_t*) outputPorts [i]))
|
||||
if (juce::jack_port_connected ((jack_port_t*) outputPorts [i]))
|
||||
outputBits.setBit (i);
|
||||
|
||||
return outputBits;
|
||||
|
|
@ -330,7 +330,7 @@ public:
|
|||
BigInteger inputBits;
|
||||
|
||||
for (int i = 0; i < inputPorts.size(); i++)
|
||||
if (JUCE_NAMESPACE::jack_port_connected ((jack_port_t*) inputPorts [i]))
|
||||
if (juce::jack_port_connected ((jack_port_t*) inputPorts [i]))
|
||||
inputBits.setBit (i);
|
||||
|
||||
return inputBits;
|
||||
|
|
@ -341,7 +341,7 @@ public:
|
|||
int latency = 0;
|
||||
|
||||
for (int i = 0; i < outputPorts.size(); i++)
|
||||
latency = jmax (latency, (int) JUCE_NAMESPACE::jack_port_get_total_latency (client, (jack_port_t*) outputPorts [i]));
|
||||
latency = jmax (latency, (int) juce::jack_port_get_total_latency (client, (jack_port_t*) outputPorts [i]));
|
||||
|
||||
return latency;
|
||||
}
|
||||
|
|
@ -351,7 +351,7 @@ public:
|
|||
int latency = 0;
|
||||
|
||||
for (int i = 0; i < inputPorts.size(); i++)
|
||||
latency = jmax (latency, (int) JUCE_NAMESPACE::jack_port_get_total_latency (client, (jack_port_t*) inputPorts [i]));
|
||||
latency = jmax (latency, (int) juce::jack_port_get_total_latency (client, (jack_port_t*) inputPorts [i]));
|
||||
|
||||
return latency;
|
||||
}
|
||||
|
|
@ -366,7 +366,7 @@ private:
|
|||
for (i = 0; i < totalNumberOfInputChannels; ++i)
|
||||
{
|
||||
jack_default_audio_sample_t* in
|
||||
= (jack_default_audio_sample_t*) JUCE_NAMESPACE::jack_port_get_buffer ((jack_port_t*) inputPorts.getUnchecked(i), numSamples);
|
||||
= (jack_default_audio_sample_t*) juce::jack_port_get_buffer ((jack_port_t*) inputPorts.getUnchecked(i), numSamples);
|
||||
|
||||
if (in != nullptr)
|
||||
inChans [numActiveInChans++] = (float*) in;
|
||||
|
|
@ -375,7 +375,7 @@ private:
|
|||
for (i = 0; i < totalNumberOfOutputChannels; ++i)
|
||||
{
|
||||
jack_default_audio_sample_t* out
|
||||
= (jack_default_audio_sample_t*) JUCE_NAMESPACE::jack_port_get_buffer ((jack_port_t*) outputPorts.getUnchecked(i), numSamples);
|
||||
= (jack_default_audio_sample_t*) juce::jack_port_get_buffer ((jack_port_t*) outputPorts.getUnchecked(i), numSamples);
|
||||
|
||||
if (out != nullptr)
|
||||
outChans [numActiveOutChans++] = (float*) out;
|
||||
|
|
@ -469,7 +469,7 @@ public:
|
|||
|
||||
// open a dummy client
|
||||
jack_status_t status;
|
||||
jack_client_t* client = JUCE_NAMESPACE::jack_client_open ("JuceJackDummy", JackNoStartServer, &status);
|
||||
jack_client_t* client = juce::jack_client_open ("JuceJackDummy", JackNoStartServer, &status);
|
||||
|
||||
if (client == 0)
|
||||
{
|
||||
|
|
@ -478,7 +478,7 @@ public:
|
|||
else
|
||||
{
|
||||
// scan for output devices
|
||||
const char** ports = JUCE_NAMESPACE::jack_get_ports (client, 0, 0, /* JackPortIsPhysical | */ JackPortIsOutput);
|
||||
const char** ports = juce::jack_get_ports (client, 0, 0, /* JackPortIsPhysical | */ JackPortIsOutput);
|
||||
|
||||
if (ports != 0)
|
||||
{
|
||||
|
|
@ -502,7 +502,7 @@ public:
|
|||
}
|
||||
|
||||
// scan for input devices
|
||||
ports = JUCE_NAMESPACE::jack_get_ports (client, 0, 0, /* JackPortIsPhysical | */ JackPortIsInput);
|
||||
ports = juce::jack_get_ports (client, 0, 0, /* JackPortIsPhysical | */ JackPortIsInput);
|
||||
|
||||
if (ports != 0)
|
||||
{
|
||||
|
|
@ -525,7 +525,7 @@ public:
|
|||
free (ports);
|
||||
}
|
||||
|
||||
JUCE_NAMESPACE::jack_client_close (client);
|
||||
juce::jack_client_close (client);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,8 +39,8 @@ END_JUCE_NAMESPACE
|
|||
|
||||
- (OpenDiskDevice*) initWithDRDevice: (DRDevice*) device;
|
||||
- (void) dealloc;
|
||||
- (void) addSourceTrack: (JUCE_NAMESPACE::AudioSource*) source numSamples: (int) numSamples_;
|
||||
- (void) burn: (JUCE_NAMESPACE::AudioCDBurner::BurnProgressListener*) listener errorString: (JUCE_NAMESPACE::String*) error
|
||||
- (void) addSourceTrack: (juce::AudioSource*) source numSamples: (int) numSamples_;
|
||||
- (void) burn: (juce::AudioCDBurner::BurnProgressListener*) listener errorString: (juce::String*) error
|
||||
ejectAfterwards: (bool) shouldEject isFake: (bool) peformFakeBurnForTesting speed: (int) burnSpeed;
|
||||
@end
|
||||
|
||||
|
|
@ -49,12 +49,12 @@ END_JUCE_NAMESPACE
|
|||
|
||||
@interface AudioTrackProducer : NSObject
|
||||
{
|
||||
JUCE_NAMESPACE::AudioSource* source;
|
||||
juce::AudioSource* source;
|
||||
int readPosition, lengthInFrames;
|
||||
}
|
||||
|
||||
- (AudioTrackProducer*) init: (int) lengthInFrames;
|
||||
- (AudioTrackProducer*) initWithAudioSource: (JUCE_NAMESPACE::AudioSource*) source numSamples: (int) lengthInSamples;
|
||||
- (AudioTrackProducer*) initWithAudioSource: (juce::AudioSource*) source numSamples: (int) lengthInSamples;
|
||||
- (void) dealloc;
|
||||
- (void) setupTrackProperties: (DRTrack*) track;
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ END_JUCE_NAMESPACE
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) addSourceTrack: (JUCE_NAMESPACE::AudioSource*) source_ numSamples: (int) numSamples_
|
||||
- (void) addSourceTrack: (juce::AudioSource*) source_ numSamples: (int) numSamples_
|
||||
{
|
||||
AudioTrackProducer* p = [[AudioTrackProducer alloc] initWithAudioSource: source_ numSamples: numSamples_];
|
||||
DRTrack* t = [[DRTrack alloc] initWithProducer: p];
|
||||
|
|
@ -111,7 +111,7 @@ END_JUCE_NAMESPACE
|
|||
[p release];
|
||||
}
|
||||
|
||||
- (void) burn: (JUCE_NAMESPACE::AudioCDBurner::BurnProgressListener*) listener errorString: (JUCE_NAMESPACE::String*) error
|
||||
- (void) burn: (juce::AudioCDBurner::BurnProgressListener*) listener errorString: (juce::String*) error
|
||||
ejectAfterwards: (bool) shouldEject isFake: (bool) peformFakeBurnForTesting speed: (int) burnSpeed
|
||||
{
|
||||
DRBurn* burn = [DRBurn burnForDevice: device];
|
||||
|
|
@ -131,7 +131,7 @@ END_JUCE_NAMESPACE
|
|||
[d setObject: (shouldEject ? DRBurnCompletionActionEject : DRBurnCompletionActionMount) forKey: DRBurnCompletionActionKey];
|
||||
|
||||
if (burnSpeed > 0)
|
||||
[d setObject: [NSNumber numberWithFloat: burnSpeed * JUCE_NAMESPACE::kilobytesPerSecond1x] forKey: DRBurnRequestedSpeedKey];
|
||||
[d setObject: [NSNumber numberWithFloat: burnSpeed * juce::kilobytesPerSecond1x] forKey: DRBurnRequestedSpeedKey];
|
||||
|
||||
if (! underrunProtection)
|
||||
[d setObject: [NSNumber numberWithBool: false] forKey: DRBurnUnderrunProtectionKey];
|
||||
|
|
@ -142,7 +142,7 @@ END_JUCE_NAMESPACE
|
|||
|
||||
for (;;)
|
||||
{
|
||||
JUCE_NAMESPACE::Thread::sleep (300);
|
||||
juce::Thread::sleep (300);
|
||||
float progress = [[[burn status] objectForKey: DRStatusPercentCompleteKey] floatValue];
|
||||
|
||||
if (listener != nullptr && listener->audioCDBurnProgress (progress))
|
||||
|
|
@ -167,7 +167,7 @@ END_JUCE_NAMESPACE
|
|||
|
||||
if ([err length] > 0)
|
||||
{
|
||||
*error = JUCE_NAMESPACE::CharPointer_UTF8 ([err UTF8String]);
|
||||
*error = juce::CharPointer_UTF8 ([err UTF8String]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -202,7 +202,7 @@ END_JUCE_NAMESPACE
|
|||
[p release];
|
||||
}
|
||||
|
||||
- (AudioTrackProducer*) initWithAudioSource: (JUCE_NAMESPACE::AudioSource*) source_ numSamples: (int) lengthInSamples
|
||||
- (AudioTrackProducer*) initWithAudioSource: (juce::AudioSource*) source_ numSamples: (int) lengthInSamples
|
||||
{
|
||||
AudioTrackProducer* s = [self init: (lengthInSamples + 587) / 588];
|
||||
|
||||
|
|
@ -269,28 +269,28 @@ END_JUCE_NAMESPACE
|
|||
|
||||
if (source != nullptr)
|
||||
{
|
||||
const int numSamples = JUCE_NAMESPACE::jmin ((int) bufferLength / 4, (lengthInFrames * (44100 / 75)) - readPosition);
|
||||
const int numSamples = juce::jmin ((int) bufferLength / 4, (lengthInFrames * (44100 / 75)) - readPosition);
|
||||
|
||||
if (numSamples > 0)
|
||||
{
|
||||
JUCE_NAMESPACE::AudioSampleBuffer tempBuffer (2, numSamples);
|
||||
juce::AudioSampleBuffer tempBuffer (2, numSamples);
|
||||
|
||||
JUCE_NAMESPACE::AudioSourceChannelInfo info;
|
||||
juce::AudioSourceChannelInfo info;
|
||||
info.buffer = &tempBuffer;
|
||||
info.startSample = 0;
|
||||
info.numSamples = numSamples;
|
||||
|
||||
source->getNextAudioBlock (info);
|
||||
|
||||
typedef JUCE_NAMESPACE::AudioData::Pointer <JUCE_NAMESPACE::AudioData::Int16,
|
||||
JUCE_NAMESPACE::AudioData::LittleEndian,
|
||||
JUCE_NAMESPACE::AudioData::Interleaved,
|
||||
JUCE_NAMESPACE::AudioData::NonConst> CDSampleFormat;
|
||||
typedef juce::AudioData::Pointer <juce::AudioData::Int16,
|
||||
juce::AudioData::LittleEndian,
|
||||
juce::AudioData::Interleaved,
|
||||
juce::AudioData::NonConst> CDSampleFormat;
|
||||
|
||||
typedef JUCE_NAMESPACE::AudioData::Pointer <JUCE_NAMESPACE::AudioData::Float32,
|
||||
JUCE_NAMESPACE::AudioData::NativeEndian,
|
||||
JUCE_NAMESPACE::AudioData::NonInterleaved,
|
||||
JUCE_NAMESPACE::AudioData::Const> SourceSampleFormat;
|
||||
typedef juce::AudioData::Pointer <juce::AudioData::Float32,
|
||||
juce::AudioData::NativeEndian,
|
||||
juce::AudioData::NonInterleaved,
|
||||
juce::AudioData::Const> SourceSampleFormat;
|
||||
CDSampleFormat left (buffer, 2);
|
||||
left.convertSamples (SourceSampleFormat (tempBuffer.getSampleData (0)), numSamples);
|
||||
CDSampleFormat right (buffer + 2, 2);
|
||||
|
|
@ -538,7 +538,7 @@ bool AudioCDBurner::addAudioTrack (AudioSource* source, int numSamps)
|
|||
return false;
|
||||
}
|
||||
|
||||
String AudioCDBurner::burn (JUCE_NAMESPACE::AudioCDBurner::BurnProgressListener* listener,
|
||||
String AudioCDBurner::burn (juce::AudioCDBurner::BurnProgressListener* listener,
|
||||
bool ejectDiscAfterwards,
|
||||
bool performFakeBurnForTesting,
|
||||
int writeSpeed)
|
||||
|
|
|
|||
|
|
@ -308,7 +308,7 @@ public:
|
|||
|
||||
if (juceFilter != nullptr)
|
||||
{
|
||||
JUCE_NAMESPACE::MemoryBlock state;
|
||||
juce::MemoryBlock state;
|
||||
juceFilter->getCurrentProgramStateInformation (state);
|
||||
|
||||
if (state.getSize() > 0)
|
||||
|
|
@ -339,7 +339,7 @@ public:
|
|||
if (data != 0)
|
||||
{
|
||||
const int numBytes = (int) CFDataGetLength (data);
|
||||
const JUCE_NAMESPACE::uint8* const rawBytes = CFDataGetBytePtr (data);
|
||||
const juce::uint8* const rawBytes = CFDataGetBytePtr (data);
|
||||
|
||||
if (numBytes > 0)
|
||||
juceFilter->setCurrentProgramStateInformation (rawBytes, numBytes);
|
||||
|
|
@ -777,7 +777,7 @@ public:
|
|||
if (! midiEvents.isEmpty())
|
||||
{
|
||||
#if JucePlugin_ProducesMidiOutput
|
||||
const JUCE_NAMESPACE::uint8* midiEventData;
|
||||
const juce::uint8* midiEventData;
|
||||
int midiEventSize, midiEventPosition;
|
||||
MidiBuffer::Iterator i (midiEvents);
|
||||
|
||||
|
|
@ -842,9 +842,9 @@ protected:
|
|||
{
|
||||
#if JucePlugin_WantsMidiInput
|
||||
const ScopedLock sl (incomingMidiLock);
|
||||
const JUCE_NAMESPACE::uint8 data[] = { (JUCE_NAMESPACE::uint8) (nStatus | inChannel),
|
||||
(JUCE_NAMESPACE::uint8) inData1,
|
||||
(JUCE_NAMESPACE::uint8) inData2 };
|
||||
const juce::uint8 data[] = { (juce::uint8) (nStatus | inChannel),
|
||||
(juce::uint8) inData1,
|
||||
(juce::uint8) inData2 };
|
||||
|
||||
incomingEvents.addEvent (data, 3, inStartFrame);
|
||||
#endif
|
||||
|
|
@ -926,7 +926,7 @@ private:
|
|||
SMPTETime lastSMPTETime;
|
||||
AUChannelInfo channelInfo [numChannelConfigs];
|
||||
AudioUnitEvent auEvent;
|
||||
mutable JUCE_NAMESPACE::MemoryBlock presetsArray;
|
||||
mutable juce::MemoryBlock presetsArray;
|
||||
CriticalSection incomingMidiLock;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE (JuceAU);
|
||||
|
|
|
|||
|
|
@ -112,14 +112,14 @@
|
|||
|
||||
//==============================================================================
|
||||
#if JUCE_WINDOWS
|
||||
extern void JUCE_CALLTYPE attachSubWindow (void* hostWindow, int& titleW, int& titleH, JUCE_NAMESPACE::Component* comp);
|
||||
extern void JUCE_CALLTYPE resizeHostWindow (void* hostWindow, int& titleW, int& titleH, JUCE_NAMESPACE::Component* comp);
|
||||
extern void JUCE_CALLTYPE attachSubWindow (void* hostWindow, int& titleW, int& titleH, juce::Component* comp);
|
||||
extern void JUCE_CALLTYPE resizeHostWindow (void* hostWindow, int& titleW, int& titleH, juce::Component* comp);
|
||||
#if ! JucePlugin_EditorRequiresKeyboardFocus
|
||||
extern void JUCE_CALLTYPE passFocusToHostWindow (void* hostWindow);
|
||||
#endif
|
||||
#else
|
||||
extern void* attachSubWindow (void* hostWindowRef, JUCE_NAMESPACE::Component* comp);
|
||||
extern void removeSubWindow (void* nsWindow, JUCE_NAMESPACE::Component* comp);
|
||||
extern void* attachSubWindow (void* hostWindowRef, juce::Component* comp);
|
||||
extern void removeSubWindow (void* nsWindow, juce::Component* comp);
|
||||
extern void forwardCurrentKeyEventToHostWindow();
|
||||
#endif
|
||||
|
||||
|
|
@ -232,7 +232,7 @@ public:
|
|||
|
||||
void timerCallback()
|
||||
{
|
||||
if (! JUCE_NAMESPACE::Component::isMouseButtonDownAnywhere())
|
||||
if (! juce::Component::isMouseButtonDownAnywhere())
|
||||
{
|
||||
stopTimer();
|
||||
|
||||
|
|
@ -287,7 +287,7 @@ public:
|
|||
private:
|
||||
AudioProcessor* const filter;
|
||||
JucePlugInProcess* const process;
|
||||
ScopedPointer<JUCE_NAMESPACE::Component> wrapper;
|
||||
ScopedPointer<juce::Component> wrapper;
|
||||
ScopedPointer<AudioProcessorEditor> editorComp;
|
||||
|
||||
void deleteEditorComp()
|
||||
|
|
@ -297,7 +297,7 @@ public:
|
|||
JUCE_AUTORELEASEPOOL
|
||||
PopupMenu::dismissAllActiveMenus();
|
||||
|
||||
JUCE_NAMESPACE::Component* const modalComponent = JUCE_NAMESPACE::Component::getCurrentlyModalComponent();
|
||||
juce::Component* const modalComponent = juce::Component::getCurrentlyModalComponent();
|
||||
if (modalComponent != nullptr)
|
||||
modalComponent->exitModalState (0);
|
||||
|
||||
|
|
@ -311,7 +311,7 @@ public:
|
|||
//==============================================================================
|
||||
// A component to hold the AudioProcessorEditor, and cope with some housekeeping
|
||||
// chores when it changes or repaints.
|
||||
class EditorCompWrapper : public JUCE_NAMESPACE::Component
|
||||
class EditorCompWrapper : public juce::Component
|
||||
#if ! JUCE_MAC
|
||||
, public FocusChangeListener
|
||||
#endif
|
||||
|
|
@ -364,7 +364,7 @@ public:
|
|||
|
||||
void resized()
|
||||
{
|
||||
JUCE_NAMESPACE::Component* const c = getChildComponent (0);
|
||||
juce::Component* const c = getChildComponent (0);
|
||||
|
||||
if (c != nullptr)
|
||||
c->setBounds (0, 0, getWidth(), getHeight());
|
||||
|
|
@ -373,7 +373,7 @@ public:
|
|||
}
|
||||
|
||||
#if JUCE_WINDOWS
|
||||
void globalFocusChanged (JUCE_NAMESPACE::Component*)
|
||||
void globalFocusChanged (juce::Component*)
|
||||
{
|
||||
#if ! JucePlugin_EditorRequiresKeyboardFocus
|
||||
if (hasKeyboardFocus (true))
|
||||
|
|
@ -382,7 +382,7 @@ public:
|
|||
}
|
||||
#endif
|
||||
|
||||
void childBoundsChanged (JUCE_NAMESPACE::Component* child)
|
||||
void childBoundsChanged (juce::Component* child)
|
||||
{
|
||||
setSize (child->getWidth(), child->getHeight());
|
||||
child->setTopLeftPosition (0, 0);
|
||||
|
|
@ -605,7 +605,7 @@ protected:
|
|||
if (! midiEvents.isEmpty())
|
||||
{
|
||||
#if JucePlugin_ProducesMidiOutput
|
||||
const JUCE_NAMESPACE::uint8* midiEventData;
|
||||
const juce::uint8* midiEventData;
|
||||
int midiEventSize, midiEventPosition;
|
||||
MidiBuffer::Iterator i (midiEvents);
|
||||
|
||||
|
|
@ -798,7 +798,7 @@ private:
|
|||
|
||||
ScopedPointer<InternalAsyncUpdater> asyncUpdater;
|
||||
|
||||
JUCE_NAMESPACE::MemoryBlock tempFilterData;
|
||||
juce::MemoryBlock tempFilterData;
|
||||
HeapBlock <float*> channels;
|
||||
bool prepared;
|
||||
double sampleRate;
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@
|
|||
|
||||
class JuceVSTWrapper;
|
||||
static bool recursionCheck = false;
|
||||
static JUCE_NAMESPACE::uint32 lastMasterIdleCall = 0;
|
||||
static juce::uint32 lastMasterIdleCall = 0;
|
||||
|
||||
BEGIN_JUCE_NAMESPACE
|
||||
extern void JUCE_API juce_callAnyTimersSynchronously();
|
||||
|
|
@ -559,7 +559,7 @@ public:
|
|||
outgoingEvents.ensureSize (numEvents);
|
||||
outgoingEvents.clear();
|
||||
|
||||
const JUCE_NAMESPACE::uint8* midiEventData;
|
||||
const juce::uint8* midiEventData;
|
||||
int midiEventSize, midiEventPosition;
|
||||
MidiBuffer::Iterator i (midiEvents);
|
||||
|
||||
|
|
@ -869,7 +869,7 @@ public:
|
|||
|
||||
// because the chunk is only needed temporarily by the host (or at least you'd
|
||||
// hope so) we'll give it a while and then free it in the timer callback.
|
||||
chunkMemoryTime = JUCE_NAMESPACE::Time::getApproximateMillisecondCounter();
|
||||
chunkMemoryTime = juce::Time::getApproximateMillisecondCounter();
|
||||
|
||||
return (VstInt32) chunkMemory.getSize();
|
||||
}
|
||||
|
|
@ -902,7 +902,7 @@ public:
|
|||
}
|
||||
|
||||
if (chunkMemoryTime > 0
|
||||
&& chunkMemoryTime < JUCE_NAMESPACE::Time::getApproximateMillisecondCounter() - 2000
|
||||
&& chunkMemoryTime < juce::Time::getApproximateMillisecondCounter() - 2000
|
||||
&& ! recursionCheck)
|
||||
{
|
||||
chunkMemoryTime = 0;
|
||||
|
|
@ -921,7 +921,7 @@ public:
|
|||
{
|
||||
if (Component::isMouseButtonDownAnywhere() && ! recursionCheck)
|
||||
{
|
||||
const JUCE_NAMESPACE::uint32 now = JUCE_NAMESPACE::Time::getMillisecondCounter();
|
||||
const juce::uint32 now = juce::Time::getMillisecondCounter();
|
||||
|
||||
if (now > lastMasterIdleCall + 20 && editorComp != nullptr)
|
||||
{
|
||||
|
|
@ -1291,8 +1291,8 @@ public:
|
|||
//==============================================================================
|
||||
private:
|
||||
AudioProcessor* filter;
|
||||
JUCE_NAMESPACE::MemoryBlock chunkMemory;
|
||||
JUCE_NAMESPACE::uint32 chunkMemoryTime;
|
||||
juce::MemoryBlock chunkMemory;
|
||||
juce::uint32 chunkMemoryTime;
|
||||
ScopedPointer<EditorCompWrapper> editorComp;
|
||||
ERect editorSize;
|
||||
MidiBuffer midiEvents;
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@
|
|||
|
||||
#include "../juce_audio_plugin_client.h"
|
||||
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
#if JUCE_MAC
|
||||
#define Point JUCE_NAMESPACE::Point
|
||||
#define Component JUCE_NAMESPACE::Component
|
||||
#define Point juce::Point
|
||||
#define Component juce::Component
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -114,12 +114,12 @@ public:
|
|||
{
|
||||
if (e->type == kVstMidiType)
|
||||
{
|
||||
dest.addEvent ((const JUCE_NAMESPACE::uint8*) ((const VstMidiEvent*) e)->midiData,
|
||||
dest.addEvent ((const juce::uint8*) ((const VstMidiEvent*) e)->midiData,
|
||||
4, e->deltaFrames);
|
||||
}
|
||||
else if (e->type == kVstSysExType)
|
||||
{
|
||||
dest.addEvent ((const JUCE_NAMESPACE::uint8*) ((const VstMidiSysexEvent*) e)->sysexDump,
|
||||
dest.addEvent ((const juce::uint8*) ((const VstMidiSysexEvent*) e)->sysexDump,
|
||||
(int) ((const VstMidiSysexEvent*) e)->dumpBytes,
|
||||
e->deltaFrames);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,10 +66,10 @@ BEGIN_JUCE_NAMESPACE
|
|||
|
||||
//==============================================================================
|
||||
#if JUCE_LINUX
|
||||
#define Font JUCE_NAMESPACE::Font
|
||||
#define KeyPress JUCE_NAMESPACE::KeyPress
|
||||
#define Drawable JUCE_NAMESPACE::Drawable
|
||||
#define Time JUCE_NAMESPACE::Time
|
||||
#define Font juce::Font
|
||||
#define KeyPress juce::KeyPress
|
||||
#define Drawable juce::Drawable
|
||||
#define Time juce::Time
|
||||
#endif
|
||||
|
||||
#include "juce_VSTMidiEventList.h"
|
||||
|
|
@ -1386,7 +1386,7 @@ private:
|
|||
|
||||
setSize (w, h);
|
||||
|
||||
startTimer (18 + JUCE_NAMESPACE::Random::getSystemRandom().nextInt (5));
|
||||
startTimer (18 + juce::Random::getSystemRandom().nextInt (5));
|
||||
repaint();
|
||||
}
|
||||
|
||||
|
|
@ -1500,7 +1500,7 @@ private:
|
|||
checkPluginWindowSize();
|
||||
#endif
|
||||
|
||||
startTimer (18 + JUCE_NAMESPACE::Random::getSystemRandom().nextInt (5));
|
||||
startTimer (18 + juce::Random::getSystemRandom().nextInt (5));
|
||||
repaint();
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@ AudioProcessorEditor* AudioProcessor::createEditorIfNeeded()
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
void AudioProcessor::getCurrentProgramStateInformation (JUCE_NAMESPACE::MemoryBlock& destData)
|
||||
void AudioProcessor::getCurrentProgramStateInformation (juce::MemoryBlock& destData)
|
||||
{
|
||||
getStateInformation (destData);
|
||||
}
|
||||
|
|
@ -251,8 +251,7 @@ void AudioProcessor::setCurrentProgramStateInformation (const void* data, int si
|
|||
// magic number to identify memory blocks that we've stored as XML
|
||||
const uint32 magicXmlNumber = 0x21324356;
|
||||
|
||||
void AudioProcessor::copyXmlToBinary (const XmlElement& xml,
|
||||
JUCE_NAMESPACE::MemoryBlock& destData)
|
||||
void AudioProcessor::copyXmlToBinary (const XmlElement& xml, juce::MemoryBlock& destData)
|
||||
{
|
||||
const String xmlString (xml.createDocument (String::empty, true, false));
|
||||
const int stringLength = xmlString.getNumBytesAsUTF8();
|
||||
|
|
|
|||
|
|
@ -486,7 +486,7 @@ public:
|
|||
|
||||
@see getCurrentProgramStateInformation
|
||||
*/
|
||||
virtual void getStateInformation (JUCE_NAMESPACE::MemoryBlock& destData) = 0;
|
||||
virtual void getStateInformation (juce::MemoryBlock& destData) = 0;
|
||||
|
||||
/** The host will call this method if it wants to save the state of just the filter's
|
||||
current program.
|
||||
|
|
@ -499,7 +499,7 @@ public:
|
|||
|
||||
@see getStateInformation, setCurrentProgramStateInformation
|
||||
*/
|
||||
virtual void getCurrentProgramStateInformation (JUCE_NAMESPACE::MemoryBlock& destData);
|
||||
virtual void getCurrentProgramStateInformation (juce::MemoryBlock& destData);
|
||||
|
||||
/** This must restore the filter's state from a block of data previously created
|
||||
using getStateInformation().
|
||||
|
|
@ -559,7 +559,7 @@ protected:
|
|||
from a binary blob.
|
||||
*/
|
||||
static void copyXmlToBinary (const XmlElement& xml,
|
||||
JUCE_NAMESPACE::MemoryBlock& destData);
|
||||
juce::MemoryBlock& destData);
|
||||
|
||||
/** Retrieves an XML element that was stored as binary with the copyXmlToBinary() method.
|
||||
|
||||
|
|
|
|||
|
|
@ -1332,7 +1332,7 @@ bool AudioProcessorGraph::isInputChannelStereoPair (int /*index*/) const { re
|
|||
bool AudioProcessorGraph::isOutputChannelStereoPair (int /*index*/) const { return true; }
|
||||
bool AudioProcessorGraph::acceptsMidi() const { return true; }
|
||||
bool AudioProcessorGraph::producesMidi() const { return true; }
|
||||
void AudioProcessorGraph::getStateInformation (JUCE_NAMESPACE::MemoryBlock& /*destData*/) {}
|
||||
void AudioProcessorGraph::getStateInformation (juce::MemoryBlock& /*destData*/) {}
|
||||
void AudioProcessorGraph::setStateInformation (const void* /*data*/, int /*sizeInBytes*/) {}
|
||||
|
||||
|
||||
|
|
@ -1495,7 +1495,7 @@ void AudioProcessorGraph::AudioGraphIOProcessor::setCurrentProgram (int)
|
|||
const String AudioProcessorGraph::AudioGraphIOProcessor::getProgramName (int) { return String::empty; }
|
||||
void AudioProcessorGraph::AudioGraphIOProcessor::changeProgramName (int, const String&) {}
|
||||
|
||||
void AudioProcessorGraph::AudioGraphIOProcessor::getStateInformation (JUCE_NAMESPACE::MemoryBlock&) {}
|
||||
void AudioProcessorGraph::AudioGraphIOProcessor::getStateInformation (juce::MemoryBlock&) {}
|
||||
void AudioProcessorGraph::AudioGraphIOProcessor::setStateInformation (const void*, int) {}
|
||||
|
||||
void AudioProcessorGraph::AudioGraphIOProcessor::setParentGraph (AudioProcessorGraph* const newGraph)
|
||||
|
|
|
|||
|
|
@ -342,7 +342,7 @@ public:
|
|||
const String getProgramName (int);
|
||||
void changeProgramName (int, const String&);
|
||||
|
||||
void getStateInformation (JUCE_NAMESPACE::MemoryBlock& destData);
|
||||
void getStateInformation (juce::MemoryBlock& destData);
|
||||
void setStateInformation (const void* data, int sizeInBytes);
|
||||
|
||||
/** @internal */
|
||||
|
|
@ -387,7 +387,7 @@ public:
|
|||
const String getProgramName (int) { return String::empty; }
|
||||
void changeProgramName (int, const String&) { }
|
||||
|
||||
void getStateInformation (JUCE_NAMESPACE::MemoryBlock& destData);
|
||||
void getStateInformation (juce::MemoryBlock& destData);
|
||||
void setStateInformation (const void* data, int sizeInBytes);
|
||||
|
||||
/** @internal */
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
#endif
|
||||
|
||||
#include "juce_browser_plugin.h"
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
#if JUCE_BUILD_NPAPI
|
||||
#define JUCE_NPAPI_WRAPPED_IN_MM 1
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ END_JUCE_NAMESPACE
|
|||
Obviously multiple instances may be used simultaneously, so be VERY cautious
|
||||
in your use of static variables!
|
||||
*/
|
||||
JUCE_NAMESPACE::BrowserPluginComponent* JUCE_CALLTYPE createBrowserPlugin();
|
||||
juce::BrowserPluginComponent* JUCE_CALLTYPE createBrowserPlugin();
|
||||
|
||||
|
||||
#endif // __JUCE_BROWSER_PLUGIN_JUCEHEADER__
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
#pragma warning (disable:4584)
|
||||
|
||||
#include "../juce_browser_plugin.h"
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
#include "juce_BrowserPluginComponent.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -133,9 +133,9 @@ private:
|
|||
@see JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR, LeakedObjectDetector
|
||||
*/
|
||||
#define JUCE_LEAK_DETECTOR(OwnerClass) \
|
||||
friend class JUCE_NAMESPACE::LeakedObjectDetector<OwnerClass>; \
|
||||
friend class juce::LeakedObjectDetector<OwnerClass>; \
|
||||
static const char* getLeakedObjectClassName() noexcept { return #OwnerClass; } \
|
||||
JUCE_NAMESPACE::LeakedObjectDetector<OwnerClass> JUCE_JOIN_MACRO (leakDetector, __LINE__);
|
||||
juce::LeakedObjectDetector<OwnerClass> JUCE_JOIN_MACRO (leakDetector, __LINE__);
|
||||
#else
|
||||
#define JUCE_LEAK_DETECTOR(OwnerClass)
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -87,9 +87,9 @@ inline int getAddressDifference (Type1* pointer1, Type2* pointer2) noexcept { r
|
|||
extern JUCE_API void juceDLL_free (void*);
|
||||
|
||||
#define JUCE_LEAK_DETECTOR(OwnerClass) public:\
|
||||
static void* operator new (size_t sz) { return JUCE_NAMESPACE::juceDLL_malloc ((int) sz); } \
|
||||
static void* operator new (size_t sz) { return juce::juceDLL_malloc ((int) sz); } \
|
||||
static void* operator new (size_t, void* p) { return p; } \
|
||||
static void operator delete (void* p) { JUCE_NAMESPACE::juceDLL_free (p); } \
|
||||
static void operator delete (void* p) { juce::juceDLL_free (p); } \
|
||||
static void operator delete (void*, void*) {}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -89,13 +89,13 @@
|
|||
#define juce_DeclareSingleton(classname, doNotRecreateAfterDeletion) \
|
||||
\
|
||||
static classname* _singletonInstance; \
|
||||
static JUCE_NAMESPACE::CriticalSection _singletonLock; \
|
||||
static juce::CriticalSection _singletonLock; \
|
||||
\
|
||||
static classname* JUCE_CALLTYPE getInstance() \
|
||||
{ \
|
||||
if (_singletonInstance == nullptr) \
|
||||
{\
|
||||
const JUCE_NAMESPACE::ScopedLock sl (_singletonLock); \
|
||||
const juce::ScopedLock sl (_singletonLock); \
|
||||
\
|
||||
if (_singletonInstance == nullptr) \
|
||||
{ \
|
||||
|
|
@ -126,7 +126,7 @@
|
|||
\
|
||||
static void JUCE_CALLTYPE deleteInstance() \
|
||||
{ \
|
||||
const JUCE_NAMESPACE::ScopedLock sl (_singletonLock); \
|
||||
const juce::ScopedLock sl (_singletonLock); \
|
||||
if (_singletonInstance != nullptr) \
|
||||
{ \
|
||||
classname* const old = _singletonInstance; \
|
||||
|
|
@ -151,7 +151,7 @@
|
|||
#define juce_ImplementSingleton(classname) \
|
||||
\
|
||||
classname* classname::_singletonInstance = nullptr; \
|
||||
JUCE_NAMESPACE::CriticalSection classname::_singletonLock;
|
||||
juce::CriticalSection classname::_singletonLock;
|
||||
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ bool Process::openEmailWithAttachments (const String& targetEmailAddress,
|
|||
//==============================================================================
|
||||
END_JUCE_NAMESPACE
|
||||
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
//==============================================================================
|
||||
#define JuceURLConnection MakeObjCClassName(JuceURLConnection)
|
||||
|
|
|
|||
|
|
@ -87,14 +87,14 @@
|
|||
This is only compiled in a debug build.
|
||||
@see Logger::outputDebugString
|
||||
*/
|
||||
#define DBG(dbgtext) { JUCE_NAMESPACE::String tempDbgBuf; tempDbgBuf << dbgtext; JUCE_NAMESPACE::Logger::outputDebugString (tempDbgBuf); }
|
||||
#define DBG(dbgtext) { juce::String tempDbgBuf; tempDbgBuf << dbgtext; juce::Logger::outputDebugString (tempDbgBuf); }
|
||||
|
||||
//==============================================================================
|
||||
/** This will always cause an assertion failure.
|
||||
It is only compiled in a debug build, (unless JUCE_LOG_ASSERTIONS is enabled for your build).
|
||||
@see jassert
|
||||
*/
|
||||
#define jassertfalse { juce_LogCurrentAssertion; if (JUCE_NAMESPACE::juce_isRunningUnderDebugger()) juce_breakDebugger; }
|
||||
#define jassertfalse { juce_LogCurrentAssertion; if (juce::juce_isRunningUnderDebugger()) juce_breakDebugger; }
|
||||
|
||||
//==============================================================================
|
||||
/** Platform-independent assertion macro.
|
||||
|
|
@ -134,7 +134,7 @@
|
|||
message that the compiler generates may be completely bizarre and seem to have no relation to
|
||||
the place where you put the static_assert though!)
|
||||
*/
|
||||
#define static_jassert(expression) JUCE_NAMESPACE::JuceStaticAssert<expression>::dummy();
|
||||
#define static_jassert(expression) juce::JuceStaticAssert<expression>::dummy();
|
||||
|
||||
/** This is a shorthand macro for declaring stubs for a class's copy constructor and operator=.
|
||||
|
||||
|
|
|
|||
|
|
@ -50,11 +50,9 @@
|
|||
#include "juce_TargetPlatform.h" // (sets up the various JUCE_WINDOWS, JUCE_MAC, etc flags)
|
||||
|
||||
//==============================================================================
|
||||
#ifndef JUCE_NAMESPACE
|
||||
#define JUCE_NAMESPACE juce
|
||||
#endif
|
||||
#define JUCE_NAMESPACE juce
|
||||
|
||||
#define BEGIN_JUCE_NAMESPACE namespace JUCE_NAMESPACE {
|
||||
#define BEGIN_JUCE_NAMESPACE namespace juce {
|
||||
#define END_JUCE_NAMESPACE }
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -202,7 +200,7 @@ extern JUCE_API bool JUCE_CALLTYPE juce_isRunningUnderDebugger();
|
|||
};
|
||||
|
||||
/** A macro that can be used to easily declare a local ScopedAutoReleasePool object for RAII-based obj-C autoreleasing. */
|
||||
#define JUCE_AUTORELEASEPOOL const JUCE_NAMESPACE::ScopedAutoReleasePool JUCE_JOIN_MACRO (autoReleasePool_, __LINE__);
|
||||
#define JUCE_AUTORELEASEPOOL const juce::ScopedAutoReleasePool JUCE_JOIN_MACRO (autoReleasePool_, __LINE__);
|
||||
|
||||
#else
|
||||
#define JUCE_AUTORELEASEPOOL
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
@see LocalisedStrings
|
||||
*/
|
||||
#define TRANS(stringLiteral) \
|
||||
JUCE_NAMESPACE::LocalisedStrings::translateWithCurrentMappings (stringLiteral)
|
||||
juce::LocalisedStrings::translateWithCurrentMappings (stringLiteral)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
*/
|
||||
#define forEachXmlChildElement(parentXmlElement, childElementVariableName) \
|
||||
\
|
||||
for (JUCE_NAMESPACE::XmlElement* childElementVariableName = (parentXmlElement).getFirstChildElement(); \
|
||||
for (juce::XmlElement* childElementVariableName = (parentXmlElement).getFirstChildElement(); \
|
||||
childElementVariableName != 0; \
|
||||
childElementVariableName = childElementVariableName->getNextElement())
|
||||
|
||||
|
|
@ -82,7 +82,7 @@
|
|||
*/
|
||||
#define forEachXmlChildElementWithTagName(parentXmlElement, childElementVariableName, requiredTagName) \
|
||||
\
|
||||
for (JUCE_NAMESPACE::XmlElement* childElementVariableName = (parentXmlElement).getChildByName (requiredTagName); \
|
||||
for (juce::XmlElement* childElementVariableName = (parentXmlElement).getChildByName (requiredTagName); \
|
||||
childElementVariableName != 0; \
|
||||
childElementVariableName = childElementVariableName->getNextElementWithTagName (requiredTagName))
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
// END_AUTOINCLUDE
|
||||
|
||||
//==============================================================================
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
BEGIN_JUCE_NAMESPACE
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ END_JUCE_NAMESPACE
|
|||
{
|
||||
if ([info isKindOfClass: [NSData class]])
|
||||
{
|
||||
JUCE_NAMESPACE::CallbackMessagePayload* pl = (JUCE_NAMESPACE::CallbackMessagePayload*) [((NSData*) info) bytes];
|
||||
juce::CallbackMessagePayload* pl = (juce::CallbackMessagePayload*) [((NSData*) info) bytes];
|
||||
|
||||
if (pl != nullptr)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ private:
|
|||
|
||||
|
||||
END_JUCE_NAMESPACE
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
#define JuceAppDelegate MakeObjCClassName(JuceAppDelegate)
|
||||
|
||||
|
|
|
|||
|
|
@ -87,44 +87,44 @@ public:
|
|||
*/
|
||||
#if JUCE_ANDROID
|
||||
#define START_JUCE_APPLICATION(AppClass) \
|
||||
JUCE_NAMESPACE::JUCEApplication* juce_CreateApplication() { return new AppClass(); }
|
||||
juce::JUCEApplication* juce_CreateApplication() { return new AppClass(); }
|
||||
|
||||
#elif defined (JUCE_GCC) || defined (__MWERKS__)
|
||||
|
||||
#define START_JUCE_APPLICATION(AppClass) \
|
||||
static JUCE_NAMESPACE::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
|
||||
static juce::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
|
||||
int main (int argc, char* argv[]) \
|
||||
{ \
|
||||
JUCE_NAMESPACE::JUCEApplication::createInstance = &juce_CreateApplication; \
|
||||
return JUCE_NAMESPACE::JUCEApplication::main (argc, (const char**) argv); \
|
||||
juce::JUCEApplication::createInstance = &juce_CreateApplication; \
|
||||
return juce::JUCEApplication::main (argc, (const char**) argv); \
|
||||
}
|
||||
|
||||
#elif JUCE_WINDOWS
|
||||
|
||||
#ifdef _CONSOLE
|
||||
#define START_JUCE_APPLICATION(AppClass) \
|
||||
static JUCE_NAMESPACE::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
|
||||
static juce::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
|
||||
int main (int, char* argv[]) \
|
||||
{ \
|
||||
JUCE_NAMESPACE::JUCEApplication::createInstance = &juce_CreateApplication; \
|
||||
return JUCE_NAMESPACE::JUCEApplication::main (JUCE_NAMESPACE::Process::getCurrentCommandLineParams()); \
|
||||
juce::JUCEApplication::createInstance = &juce_CreateApplication; \
|
||||
return juce::JUCEApplication::main (juce::Process::getCurrentCommandLineParams()); \
|
||||
}
|
||||
#elif ! defined (_AFXDLL)
|
||||
#ifdef _WINDOWS_
|
||||
#define START_JUCE_APPLICATION(AppClass) \
|
||||
static JUCE_NAMESPACE::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
|
||||
static juce::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
|
||||
int WINAPI WinMain (HINSTANCE, HINSTANCE, LPSTR, int) \
|
||||
{ \
|
||||
JUCE_NAMESPACE::JUCEApplication::createInstance = &juce_CreateApplication; \
|
||||
return JUCE_NAMESPACE::JUCEApplication::main (JUCE_NAMESPACE::Process::getCurrentCommandLineParams()); \
|
||||
juce::JUCEApplication::createInstance = &juce_CreateApplication; \
|
||||
return juce::JUCEApplication::main (juce::Process::getCurrentCommandLineParams()); \
|
||||
}
|
||||
#else
|
||||
#define START_JUCE_APPLICATION(AppClass) \
|
||||
static JUCE_NAMESPACE::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
|
||||
static juce::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
|
||||
int __stdcall WinMain (void*, void*, const char*, int) \
|
||||
{ \
|
||||
JUCE_NAMESPACE::JUCEApplication::createInstance = &juce_CreateApplication; \
|
||||
return JUCE_NAMESPACE::JUCEApplication::main (JUCE_NAMESPACE::Process::getCurrentCommandLineParams()); \
|
||||
juce::JUCEApplication::createInstance = &juce_CreateApplication; \
|
||||
return juce::JUCEApplication::main (juce::Process::getCurrentCommandLineParams()); \
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@
|
|||
#include "misc/juce_DropShadower.cpp"
|
||||
// END_AUTOINCLUDE
|
||||
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
//==============================================================================
|
||||
BEGIN_JUCE_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
*/
|
||||
|
||||
END_JUCE_NAMESPACE
|
||||
extern JUCE_NAMESPACE::JUCEApplicationBase* juce_CreateApplication(); // (from START_JUCE_APPLICATION)
|
||||
extern juce::JUCEApplicationBase* juce_CreateApplication(); // (from START_JUCE_APPLICATION)
|
||||
BEGIN_JUCE_NAMESPACE
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -292,7 +292,7 @@ void ModifierKeys::updateCurrentModifiers() noexcept
|
|||
currentModifiers = UIViewComponentPeer::currentModifiers;
|
||||
}
|
||||
|
||||
JUCE_NAMESPACE::Point<int> juce_lastMousePos;
|
||||
juce::Point<int> juce_lastMousePos;
|
||||
|
||||
//==============================================================================
|
||||
- (void) touchesBegan: (NSSet*) touches withEvent: (UIEvent*) event
|
||||
|
|
@ -917,7 +917,7 @@ void UIViewComponentPeer::drawRect (CGRect r)
|
|||
|
||||
bool UIViewComponentPeer::canBecomeKeyWindow()
|
||||
{
|
||||
return (getStyleFlags() & JUCE_NAMESPACE::ComponentPeer::windowIgnoresKeyPresses) == 0;
|
||||
return (getStyleFlags() & juce::ComponentPeer::windowIgnoresKeyPresses) == 0;
|
||||
}
|
||||
|
||||
bool UIViewComponentPeer::windowShouldClose()
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
//==============================================================================
|
||||
END_JUCE_NAMESPACE
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
#define JuceFileChooserDelegate MakeObjCClassName(JuceFileChooserDelegate)
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
class JuceMainMenuHandler;
|
||||
|
||||
END_JUCE_NAMESPACE
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
#define JuceMenuCallback MakeObjCClassName(JuceMenuCallback)
|
||||
|
||||
|
|
@ -423,9 +423,9 @@ END_JUCE_NAMESPACE
|
|||
NSEvent* e = [NSApp currentEvent];
|
||||
if ([e type] == NSKeyDown || [e type] == NSKeyUp)
|
||||
{
|
||||
if (JUCE_NAMESPACE::Component::getCurrentlyFocusedComponent() != nullptr)
|
||||
if (juce::Component::getCurrentlyFocusedComponent() != nullptr)
|
||||
{
|
||||
JUCE_NAMESPACE::NSViewComponentPeer* peer = dynamic_cast <JUCE_NAMESPACE::NSViewComponentPeer*> (JUCE_NAMESPACE::Component::getCurrentlyFocusedComponent()->getPeer());
|
||||
juce::NSViewComponentPeer* peer = dynamic_cast <juce::NSViewComponentPeer*> (juce::Component::getCurrentlyFocusedComponent()->getPeer());
|
||||
|
||||
if (peer != nullptr)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -669,7 +669,7 @@ END_JUCE_NAMESPACE
|
|||
- (NSRect) firstRectForCharacterRange: (NSRange) theRange
|
||||
{
|
||||
(void) theRange;
|
||||
JUCE_NAMESPACE::Component* const comp = dynamic_cast <JUCE_NAMESPACE::Component*> (owner->findCurrentTextInputTarget());
|
||||
juce::Component* const comp = dynamic_cast <juce::Component*> (owner->findCurrentTextInputTarget());
|
||||
|
||||
if (comp == 0)
|
||||
return NSMakeRect (0, 0, 0, 0);
|
||||
|
|
@ -820,10 +820,10 @@ END_JUCE_NAMESPACE
|
|||
if (owner != nullptr)
|
||||
frameRect = owner->constrainRect (frameRect);
|
||||
|
||||
if (JUCE_NAMESPACE::Component::getCurrentlyModalComponent() != nullptr
|
||||
if (juce::Component::getCurrentlyModalComponent() != nullptr
|
||||
&& owner->getComponent()->isCurrentlyBlockedByAnotherModalComponent()
|
||||
&& owner->hasNativeTitleBar())
|
||||
JUCE_NAMESPACE::Component::getCurrentlyModalComponent()->inputAttemptWhenModal();
|
||||
juce::Component::getCurrentlyModalComponent()->inputAttemptWhenModal();
|
||||
|
||||
return frameRect.size;
|
||||
}
|
||||
|
|
@ -841,10 +841,10 @@ END_JUCE_NAMESPACE
|
|||
{
|
||||
(void) notification;
|
||||
|
||||
if (JUCE_NAMESPACE::Component::getCurrentlyModalComponent() != nullptr
|
||||
if (juce::Component::getCurrentlyModalComponent() != nullptr
|
||||
&& owner->getComponent()->isCurrentlyBlockedByAnotherModalComponent()
|
||||
&& owner->hasNativeTitleBar())
|
||||
JUCE_NAMESPACE::Component::getCurrentlyModalComponent()->inputAttemptWhenModal();
|
||||
juce::Component::getCurrentlyModalComponent()->inputAttemptWhenModal();
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
@ -1685,7 +1685,7 @@ void NSViewComponentPeer::setCurrentRenderingEngine (int index)
|
|||
|
||||
bool NSViewComponentPeer::canBecomeKeyWindow()
|
||||
{
|
||||
return (getStyleFlags() & JUCE_NAMESPACE::ComponentPeer::windowIgnoresKeyPresses) == 0;
|
||||
return (getStyleFlags() & juce::ComponentPeer::windowIgnoresKeyPresses) == 0;
|
||||
}
|
||||
|
||||
void NSViewComponentPeer::becomeKeyWindow()
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
#include "misc/juce_SystemTrayIconComponent.cpp"
|
||||
// END_AUTOINCLUDE
|
||||
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
BEGIN_JUCE_NAMESPACE
|
||||
|
||||
|
|
|
|||
|
|
@ -29,10 +29,10 @@ END_JUCE_NAMESPACE
|
|||
|
||||
@interface DownloadClickDetector : NSObject
|
||||
{
|
||||
JUCE_NAMESPACE::WebBrowserComponent* ownerComponent;
|
||||
juce::WebBrowserComponent* ownerComponent;
|
||||
}
|
||||
|
||||
- (DownloadClickDetector*) initWithWebBrowserOwner: (JUCE_NAMESPACE::WebBrowserComponent*) ownerComponent;
|
||||
- (DownloadClickDetector*) initWithWebBrowserOwner: (juce::WebBrowserComponent*) ownerComponent;
|
||||
|
||||
- (void) webView: (WebView*) webView decidePolicyForNavigationAction: (NSDictionary*) actionInformation
|
||||
request: (NSURLRequest*) request
|
||||
|
|
@ -43,7 +43,7 @@ END_JUCE_NAMESPACE
|
|||
//==============================================================================
|
||||
@implementation DownloadClickDetector
|
||||
|
||||
- (DownloadClickDetector*) initWithWebBrowserOwner: (JUCE_NAMESPACE::WebBrowserComponent*) ownerComponent_
|
||||
- (DownloadClickDetector*) initWithWebBrowserOwner: (juce::WebBrowserComponent*) ownerComponent_
|
||||
{
|
||||
[super init];
|
||||
ownerComponent = ownerComponent_;
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@
|
|||
#include "opengl/juce_OpenGLComponent.cpp"
|
||||
// END_AUTOINCLUDE
|
||||
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
//==============================================================================
|
||||
BEGIN_JUCE_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@
|
|||
#endif
|
||||
|
||||
//==============================================================================
|
||||
using namespace JUCE_NAMESPACE;
|
||||
using namespace juce;
|
||||
|
||||
BEGIN_JUCE_NAMESPACE
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue