Browse Source

Update juce

tags/2018-04-16
falkTX 8 years ago
parent
commit
3170408814
23 changed files with 61 additions and 51 deletions
  1. +1
    -1
      libs/juce/source/modules/juce_audio_basics/juce_module_info
  2. +1
    -1
      libs/juce/source/modules/juce_audio_devices/juce_module_info
  3. +1
    -3
      libs/juce/source/modules/juce_audio_devices/native/juce_win32_ASIO.cpp
  4. +3
    -9
      libs/juce/source/modules/juce_audio_formats/codecs/juce_AiffAudioFormat.cpp
  5. +17
    -17
      libs/juce/source/modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp
  6. +1
    -1
      libs/juce/source/modules/juce_audio_formats/juce_module_info
  7. +1
    -1
      libs/juce/source/modules/juce_audio_plugin_client/juce_module_info
  8. +1
    -1
      libs/juce/source/modules/juce_audio_processors/juce_module_info
  9. +1
    -1
      libs/juce/source/modules/juce_audio_utils/juce_module_info
  10. +11
    -1
      libs/juce/source/modules/juce_core/containers/juce_Array.h
  11. +1
    -1
      libs/juce/source/modules/juce_core/juce_module_info
  12. +8
    -1
      libs/juce/source/modules/juce_core/native/juce_win32_Files.cpp
  13. +1
    -1
      libs/juce/source/modules/juce_core/system/juce_StandardHeader.h
  14. +1
    -1
      libs/juce/source/modules/juce_core/zip/juce_GZIPCompressorOutputStream.cpp
  15. +4
    -4
      libs/juce/source/modules/juce_core/zip/juce_GZIPCompressorOutputStream.h
  16. +1
    -1
      libs/juce/source/modules/juce_cryptography/juce_module_info
  17. +1
    -1
      libs/juce/source/modules/juce_data_structures/juce_module_info
  18. +1
    -1
      libs/juce/source/modules/juce_events/juce_module_info
  19. +1
    -1
      libs/juce/source/modules/juce_graphics/juce_module_info
  20. +1
    -1
      libs/juce/source/modules/juce_gui_basics/juce_module_info
  21. +1
    -0
      libs/juce/source/modules/juce_gui_basics/widgets/juce_TextEditor.cpp
  22. +1
    -1
      libs/juce/source/modules/juce_gui_extra/juce_module_info
  23. +1
    -1
      libs/juce/source/modules/juce_tracktion_marketplace/juce_module_info

+ 1
- 1
libs/juce/source/modules/juce_audio_basics/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_audio_basics",
"name": "JUCE audio and midi data classes",
"version": "4.0.1",
"version": "4.0.2",
"description": "Classes for audio buffer manipulation, midi message handling, synthesis, etc",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


+ 1
- 1
libs/juce/source/modules/juce_audio_devices/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_audio_devices",
"name": "JUCE audio and midi I/O device classes",
"version": "4.0.1",
"version": "4.0.2",
"description": "Classes to play and record from audio and midi i/o devices.",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


+ 1
- 3
libs/juce/source/modules/juce_audio_devices/native/juce_win32_ASIO.cpp View File

@@ -941,9 +941,7 @@ private:
}
bufferSizes.addIfNotAlreadyThere (preferredSize);
DefaultElementComparator <int> comparator;
bufferSizes.sort (comparator);
bufferSizes.sort();
}
double getSampleRate() const


+ 3
- 9
libs/juce/source/modules/juce_audio_formats/codecs/juce_AiffAudioFormat.cpp View File

@@ -889,17 +889,11 @@ public:
void readMaxLevels (int64 startSampleInFile, int64 numSamples, Range<float>* results, int numChannelsToRead) override
{
if (numSamples <= 0)
{
for (int i = 0; i < numChannelsToRead; ++i)
results[i] = Range<float>();
numSamples = jmin (numSamples, lengthInSamples - startSampleInFile);
return;
}
if (map == nullptr || ! mappedSection.contains (Range<int64> (startSampleInFile, startSampleInFile + numSamples)))
if (map == nullptr || numSamples <= 0 || ! mappedSection.contains (Range<int64> (startSampleInFile, startSampleInFile + numSamples)))
{
jassertfalse; // you must make sure that the window contains all the samples you're going to attempt to read.
jassert (numSamples <= 0); // you must make sure that the window contains all the samples you're going to attempt to read.
for (int i = 0; i < numChannelsToRead; ++i)
results[i] = Range<float>();


+ 17
- 17
libs/juce/source/modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp View File

@@ -650,17 +650,23 @@ namespace WavFileHelpers
{
while (input.getPosition() < chunkEnd)
{
const int infoType = input.readInt();
const int64 infoLength = jlimit ((int64) 0, chunkEnd - input.getPosition(), (int64) input.readInt());
const int infoType = input.readInt();
for (int i = 0; i < numElementsInArray (types); ++i)
int64 infoLength = chunkEnd - input.getPosition();
if (infoLength > 0)
{
if (isMatchingTypeIgnoringCase (infoType, types[i]))
infoLength = jlimit ((int64) 0, infoLength, (int64) input.readInt());
for (int i = 0; i < numElementsInArray (types); ++i)
{
MemoryBlock mb;
input.readIntoMemoryBlock (mb, (ssize_t) infoLength);
values.set (types[i], mb.toString());
break;
if (isMatchingTypeIgnoringCase (infoType, types[i]))
{
MemoryBlock mb;
input.readIntoMemoryBlock (mb, (ssize_t) infoLength);
values.set (types[i], mb.toString());
break;
}
}
}
}
@@ -1513,17 +1519,11 @@ public:
void readMaxLevels (int64 startSampleInFile, int64 numSamples, Range<float>* results, int numChannelsToRead) override
{
if (numSamples <= 0)
{
for (int i = 0; i < numChannelsToRead; ++i)
results[i] = Range<float>();
return;
}
numSamples = jmin (numSamples, lengthInSamples - startSampleInFile);
if (map == nullptr || ! mappedSection.contains (Range<int64> (startSampleInFile, startSampleInFile + numSamples)))
if (map == nullptr || numSamples <= 0 || ! mappedSection.contains (Range<int64> (startSampleInFile, startSampleInFile + numSamples)))
{
jassertfalse; // you must make sure that the window contains all the samples you're going to attempt to read.
jassert (numSamples <= 0); // you must make sure that the window contains all the samples you're going to attempt to read.
for (int i = 0; i < numChannelsToRead; ++i)
results[i] = Range<float>();


+ 1
- 1
libs/juce/source/modules/juce_audio_formats/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_audio_formats",
"name": "JUCE audio file format codecs",
"version": "4.0.1",
"version": "4.0.2",
"description": "Classes for reading and writing various audio file formats.",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


+ 1
- 1
libs/juce/source/modules/juce_audio_plugin_client/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_audio_plugin_client",
"name": "JUCE audio plugin wrapper classes",
"version": "4.0.1",
"version": "4.0.2",
"description": "Classes for building VST, VST3, RTAS, AAX and AU plugins.",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


+ 1
- 1
libs/juce/source/modules/juce_audio_processors/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_audio_processors",
"name": "JUCE audio plugin hosting classes",
"version": "4.0.1",
"version": "4.0.2",
"description": "Classes for loading and playing VST, AU, or internally-generated audio processors.",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


+ 1
- 1
libs/juce/source/modules/juce_audio_utils/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_audio_utils",
"name": "JUCE extra audio utility classes",
"version": "4.0.1",
"version": "4.0.2",
"description": "Classes for audio-related GUI and miscellaneous tasks.",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


+ 11
- 1
libs/juce/source/modules/juce_core/containers/juce_Array.h View File

@@ -1053,6 +1053,16 @@ public:
}
//==============================================================================
/** Sorts the array using a default comparison operation.
If the type of your elements isn't supported by the DefaultElementComparator class
then you may need to use the other version of sort, which takes a custom comparator.
*/
void sort()
{
DefaultElementComparator<ElementType> comparator;
sort (comparator);
}
/** Sorts the elements in the array.
This will use a comparator object to sort the elements into order. The object
@@ -1081,7 +1091,7 @@ public:
*/
template <class ElementComparator>
void sort (ElementComparator& comparator,
const bool retainOrderOfEquivalentItems = false) const
const bool retainOrderOfEquivalentItems = false)
{
const ScopedLockType lock (getLock());
(void) comparator; // if you pass in an object with a static compareElements() method, this


+ 1
- 1
libs/juce/source/modules/juce_core/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_core",
"name": "JUCE core classes",
"version": "4.0.1",
"version": "4.0.2",
"description": "The essential set of basic JUCE classes, as required by all the other JUCE modules. Includes text, container, memory, threading and i/o functionality.",
"website": "http://www.juce.com/juce",
"license": "ISC Permissive",


+ 8
- 1
libs/juce/source/modules/juce_core/native/juce_win32_Files.cpp View File

@@ -662,7 +662,14 @@ File File::getLinkedTarget() const
if (requiredSize > 0)
{
CloseHandle (h);
return File (String (buffer));
const StringRef prefix ("\\\\?\\");
const String path (buffer);
// It turns out that GetFinalPathNameByHandleW prepends \\?\ to the path.
// This is not a bug, it's feature. See MSDN for more information.
return File (path.startsWith (prefix) ? path.substring (prefix.length())
: path);
}
}


+ 1
- 1
libs/juce/source/modules/juce_core/system/juce_StandardHeader.h View File

@@ -36,7 +36,7 @@
*/
#define JUCE_MAJOR_VERSION 4
#define JUCE_MINOR_VERSION 0
#define JUCE_BUILDNUMBER 1
#define JUCE_BUILDNUMBER 2
/** Current Juce version number.


+ 1
- 1
libs/juce/source/modules/juce_core/zip/juce_GZIPCompressorOutputStream.cpp View File

@@ -30,7 +30,7 @@ class GZIPCompressorOutputStream::GZIPCompressorHelper
{
public:
GZIPCompressorHelper (const int compressionLevel, const int windowBits)
: compLevel ((compressionLevel < 1 || compressionLevel > 9) ? -1 : compressionLevel),
: compLevel ((compressionLevel < 0 || compressionLevel > 9) ? -1 : compressionLevel),
isFirstDeflate (true),
streamIsValid (false),
finished (false)


+ 4
- 4
libs/juce/source/modules/juce_core/zip/juce_GZIPCompressorOutputStream.h View File

@@ -48,9 +48,9 @@ public:
@param destStream the stream into which the compressed data should
be written
@param compressionLevel how much to compress the data, between 1 and 9, where
1 is the fastest/lowest compression, and 9 is the
slowest/highest compression. Any value outside this range
@param compressionLevel how much to compress the data, between 0 and 9, where
0 is non-compressed storage, 1 is the fastest/lowest compression,
and 9 is the slowest/highest compression. Any value outside this range
indicates that a default compression level should be used.
@param deleteDestStreamWhenDestroyed whether or not to delete the destStream object when
this stream is destroyed
@@ -59,7 +59,7 @@ public:
its value for some reason
*/
GZIPCompressorOutputStream (OutputStream* destStream,
int compressionLevel = 0,
int compressionLevel = -1,
bool deleteDestStreamWhenDestroyed = false,
int windowBits = 0);


+ 1
- 1
libs/juce/source/modules/juce_cryptography/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_cryptography",
"name": "JUCE cryptography classes",
"version": "4.0.1",
"version": "4.0.2",
"description": "Classes for various basic cryptography functions, including RSA, Blowfish, MD5, SHA, etc.",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


+ 1
- 1
libs/juce/source/modules/juce_data_structures/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_data_structures",
"name": "JUCE data model helper classes",
"version": "4.0.1",
"version": "4.0.2",
"description": "Classes for undo/redo management, and smart data structures.",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


+ 1
- 1
libs/juce/source/modules/juce_events/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_events",
"name": "JUCE message and event handling classes",
"version": "4.0.1",
"version": "4.0.2",
"description": "Classes for running an application's main event loop and sending/receiving messages, timers, etc.",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


+ 1
- 1
libs/juce/source/modules/juce_graphics/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_graphics",
"name": "JUCE graphics classes",
"version": "4.0.1",
"version": "4.0.2",
"description": "Classes for 2D vector graphics, image loading/saving, font handling, etc.",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


+ 1
- 1
libs/juce/source/modules/juce_gui_basics/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_gui_basics",
"name": "JUCE GUI core classes",
"version": "4.0.1",
"version": "4.0.2",
"description": "Basic user-interface components and related classes.",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


+ 1
- 0
libs/juce/source/modules/juce_gui_basics/widgets/juce_TextEditor.cpp View File

@@ -1084,6 +1084,7 @@ void TextEditor::colourChanged()
void TextEditor::lookAndFeelChanged()
{
caret = nullptr;
recreateCaret();
repaint();
}


+ 1
- 1
libs/juce/source/modules/juce_gui_extra/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_gui_extra",
"name": "JUCE extended GUI classes",
"version": "4.0.1",
"version": "4.0.2",
"description": "Miscellaneous GUI classes for specialised tasks.",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


+ 1
- 1
libs/juce/source/modules/juce_tracktion_marketplace/juce_module_info View File

@@ -1,7 +1,7 @@
{
"id": "juce_tracktion_marketplace",
"name": "JUCE Tracktion marketplace support",
"version": "4.0.1",
"version": "4.0.2",
"description": "JUCE classes for online product authentication via the Tracktion marketplace.",
"website": "http://www.juce.com/juce",
"license": "GPL/Commercial",


Loading…
Cancel
Save