Loading...
Searching...
No Matches
juce_AiffAudioFormat.h
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2022 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 7 End-User License
Agreement and JUCE Privacy Policy.
End User License Agreement: www.juce.com/juce-7-licence
Privacy Policy: www.juce.com/juce-privacy-policy
Or: You may also use this code under the terms of the GPL v3 (see
www.gnu.org/licenses).
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
DISCLAIMED.
==============================================================================
*/
namespace juce
{
//==============================================================================
class JUCE_API AiffAudioFormat : public AudioFormat
{
public:
//==============================================================================
AiffAudioFormat();
~AiffAudioFormat() override;
//==============================================================================
static const char* const appleOneShot;
static const char* const appleRootSet;
static const char* const appleRootNote;
static const char* const appleBeats;
static const char* const appleDenominator;
static const char* const appleNumerator;
static const char* const appleTag;
static const char* const appleKey;
//==============================================================================
Array<int> getPossibleSampleRates() override;
Array<int> getPossibleBitDepths() override;
bool canDoStereo() override;
bool canDoMono() override;
#if JUCE_MAC
bool canHandleFile (const File& fileToTest) override;
#endif
//==============================================================================
AudioFormatReader* createReaderFor (InputStream* sourceStream,
bool deleteStreamIfOpeningFails) override;
MemoryMappedAudioFormatReader* createMemoryMappedReader (const File&) override;
MemoryMappedAudioFormatReader* createMemoryMappedReader (FileInputStream*) override;
AudioFormatWriter* createWriterFor (OutputStream* streamToWriteTo,
double sampleRateToUse,
unsigned int numberOfChannels,
int bitsPerSample,
const StringPairArray& metadataValues,
int qualityOptionIndex) override;
using AudioFormat::createWriterFor;
private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AiffAudioFormat)
};
} // namespace juce
juce::AiffAudioFormat::appleDenominator
static const char *const appleDenominator
Definition juce_AiffAudioFormat.h:57
juce::AiffAudioFormat::AiffAudioFormat
AiffAudioFormat()
Definition juce_AiffAudioFormat.cpp:950
juce::AiffAudioFormat::canDoStereo
bool canDoStereo() override
Definition juce_AiffAudioFormat.cpp:963
juce::AiffAudioFormat::appleOneShot
static const char *const appleOneShot
Definition juce_AiffAudioFormat.h:49
juce::AiffAudioFormat::createReaderFor
AudioFormatReader * createReaderFor(InputStream *sourceStream, bool deleteStreamIfOpeningFails) override
Definition juce_AiffAudioFormat.cpp:980
juce::AiffAudioFormat::getPossibleBitDepths
Array< int > getPossibleBitDepths() override
Definition juce_AiffAudioFormat.cpp:958
juce::AiffAudioFormat::appleNumerator
static const char *const appleNumerator
Definition juce_AiffAudioFormat.h:59
juce::AiffAudioFormat::appleTag
static const char *const appleTag
Definition juce_AiffAudioFormat.h:61
juce::AiffAudioFormat::appleBeats
static const char *const appleBeats
Definition juce_AiffAudioFormat.h:55
juce::AiffAudioFormat::canDoMono
bool canDoMono() override
Definition juce_AiffAudioFormat.cpp:964
juce::AiffAudioFormat::getPossibleSampleRates
Array< int > getPossibleSampleRates() override
Definition juce_AiffAudioFormat.cpp:953
juce::AiffAudioFormat::appleRootSet
static const char *const appleRootSet
Definition juce_AiffAudioFormat.h:51
juce::AiffAudioFormat::createMemoryMappedReader
MemoryMappedAudioFormatReader * createMemoryMappedReader(const File &) override
Definition juce_AiffAudioFormat.cpp:993
juce::AiffAudioFormat::createWriterFor
AudioFormatWriter * createWriterFor(OutputStream *streamToWriteTo, double sampleRateToUse, unsigned int numberOfChannels, int bitsPerSample, const StringPairArray &metadataValues, int qualityOptionIndex) override
Definition juce_AiffAudioFormat.cpp:1011
juce::AiffAudioFormat::appleKey
static const char *const appleKey
Definition juce_AiffAudioFormat.h:63
juce::AiffAudioFormat::appleRootNote
static const char *const appleRootNote
Definition juce_AiffAudioFormat.h:53
juce::Array
Definition juce_Array.h:56
juce::AudioFormatReader
Definition juce_AudioFormatReader.h:44
juce::AudioFormatWriter
Definition juce_AudioFormatWriter.h:44
juce::AudioFormat::createWriterFor
virtual AudioFormatWriter * createWriterFor(OutputStream *streamToWriteTo, double sampleRateToUse, unsigned int numberOfChannels, int bitsPerSample, const StringPairArray &metadataValues, int qualityOptionIndex)=0
juce::AudioFormat::canHandleFile
virtual bool canHandleFile(const File &fileToTest)
Definition juce_AudioFormat.cpp:43
juce::AudioFormat::AudioFormat
AudioFormat(String formatName, StringArray fileExtensions)
Definition juce_AudioFormat.cpp:29
juce::FileInputStream
Definition juce_FileInputStream.h:35
juce::File
Definition juce_File.h:45
juce::InputStream
Definition juce_InputStream.h:37
juce::MemoryMappedAudioFormatReader
Definition juce_MemoryMappedAudioFormatReader.h:47
juce::OutputStream
Definition juce_OutputStream.h:38
juce::StringPairArray
Definition juce_StringPairArray.h:35