40 for (
auto*
af : knownFormats)
42 if (
af->getFormatName() ==
newFormat->getFormatName())
63 #if JUCE_USE_OGGVORBIS
67 #if JUCE_MAC || JUCE_IOS
71 #if JUCE_USE_MP3AUDIOFORMAT
75 #if JUCE_USE_WINDOWS_MEDIA_FORMAT
83 defaultFormatIndex = 0;
95 for (
auto*
af : knownFormats)
96 if (
af->getFileExtensions().contains (fileExtension,
true))
106 for (
auto*
af : knownFormats)
113 e = (e.startsWithChar (
'.') ?
"*" :
"*.") + e;
126 for (
auto*
af : knownFormats)
127 if (
af->canHandleFile (file))
129 if (
auto* r =
af->createReaderFor (in.release(),
true))
145 for (
auto*
af : knownFormats)
Represents a local file or directory.
std::unique_ptr< FileInputStream > createInputStream() const
Creates a stream to read from this file.
A special array for holding a list of strings.
void addArray(const StringArray &other, int startIndex=0, int numElementsToAdd=-1)
Appends some strings from another array to the end of this one.
bool startsWithChar(juce_wchar character) const noexcept
Tests whether the string begins with a particular character.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...