mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Rewrote the AudioThumbnail class to support some new features like using readers and adding data directly to the thumb. Added an option to AudioFormatWriter::ThreadedWriter to take a thumbnail which it dynamically generates while recording. Added a couple of new maths functions: findMinAndMax, isPositiveAndBelow.
This commit is contained in:
parent
12a6bdaa03
commit
99085429b5
64 changed files with 2161 additions and 1622 deletions
|
|
@ -1262,7 +1262,7 @@ const String String::replaceCharacters (const String& charactersToReplace,
|
|||
{
|
||||
const int index = charactersToReplace.indexOfChar (*t);
|
||||
|
||||
if (((unsigned int) index) < (unsigned int) len2)
|
||||
if (isPositiveAndBelow (index, len2))
|
||||
*t = charactersToInsertInstead [index];
|
||||
|
||||
++t;
|
||||
|
|
@ -1333,7 +1333,7 @@ const String String::toLowerCase() const
|
|||
//==============================================================================
|
||||
juce_wchar& String::operator[] (const int index)
|
||||
{
|
||||
jassert (((unsigned int) index) <= (unsigned int) length());
|
||||
jassert (isPositiveAndNotGreaterThan (index, length()));
|
||||
text = StringHolder::makeUnique (text);
|
||||
return text [index];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue