1
0
Fork 0
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:
Julian Storer 2010-12-03 23:36:00 +00:00
parent 12a6bdaa03
commit 99085429b5
64 changed files with 2161 additions and 1622 deletions

View file

@ -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);
}