mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +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
|
|
@ -109,7 +109,7 @@ void StringArray::clear()
|
|||
|
||||
const String& StringArray::operator[] (const int index) const throw()
|
||||
{
|
||||
if (((unsigned int) index) < (unsigned int) strings.size())
|
||||
if (isPositiveAndBelow (index, strings.size()))
|
||||
return strings.getReference (index);
|
||||
|
||||
return String::empty;
|
||||
|
|
@ -117,7 +117,7 @@ const String& StringArray::operator[] (const int index) const throw()
|
|||
|
||||
String& StringArray::getReference (const int index) throw()
|
||||
{
|
||||
jassert (((unsigned int) index) < (unsigned int) strings.size());
|
||||
jassert (isPositiveAndBelow (index, strings.size()));
|
||||
return strings.getReference (index);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue