mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
New classes: Reverb and ReverbAudioSource. Fixes for component alpha levels, mac file chooser, MemoryInputStream.
This commit is contained in:
parent
94b07cb09b
commit
e6f64740d9
36 changed files with 1170 additions and 258 deletions
|
|
@ -32,24 +32,25 @@ BEGIN_JUCE_NAMESPACE
|
|||
#include "../../../io/files/juce_FileInputStream.h"
|
||||
#include "../../../io/streams/juce_BufferedInputStream.h"
|
||||
|
||||
|
||||
//==============================================================================
|
||||
struct DefaultImageFormats
|
||||
{
|
||||
PNGImageFormat png;
|
||||
JPEGImageFormat jpg;
|
||||
GIFImageFormat gif;
|
||||
};
|
||||
|
||||
static DefaultImageFormats defaultImageFormats;
|
||||
|
||||
ImageFileFormat* ImageFileFormat::findImageFormatForStream (InputStream& input)
|
||||
{
|
||||
static PNGImageFormat png;
|
||||
static JPEGImageFormat jpg;
|
||||
static GIFImageFormat gif;
|
||||
|
||||
ImageFileFormat* formats[4];
|
||||
int numFormats = 0;
|
||||
|
||||
formats [numFormats++] = &png;
|
||||
formats [numFormats++] = &jpg;
|
||||
formats [numFormats++] = &gif;
|
||||
ImageFileFormat* formats[] = { &defaultImageFormats.png,
|
||||
&defaultImageFormats.jpg,
|
||||
&defaultImageFormats.gif };
|
||||
|
||||
const int64 streamPos = input.getPosition();
|
||||
|
||||
for (int i = 0; i < numFormats; ++i)
|
||||
for (int i = 0; i < numElementsInArray (formats); ++i)
|
||||
{
|
||||
const bool found = formats[i]->canUnderstand (input);
|
||||
input.setPosition (streamPos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue