OpenShot Audio Library | OpenShotAudio 0.3.2

Loading...
Searching...
No Matches
juce_AiffAudioFormat.h
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2017 - ROLI Ltd.
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 5 End-User License
11 Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
12 27th April 2017).
13
14 End User License Agreement: www.juce.com/juce-5-licence
15 Privacy Policy: www.juce.com/juce-5-privacy-policy
16
17 Or: You may also use this code under the terms of the GPL v3 (see
18 www.gnu.org/licenses).
19
20 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
21 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
22 DISCLAIMED.
23
24 ==============================================================================
25*/
26
27 namespace juce
28{
29
30//==============================================================================
38 class JUCE_API AiffAudioFormat : public AudioFormat
39{
40 public:
41 //==============================================================================
43 AiffAudioFormat();
44
46 ~AiffAudioFormat() override;
47
48 //==============================================================================
50 static const char* const appleOneShot;
52 static const char* const appleRootSet;
54 static const char* const appleRootNote;
56 static const char* const appleBeats;
58 static const char* const appleDenominator;
60 static const char* const appleNumerator;
62 static const char* const appleTag;
64 static const char* const appleKey;
65
66 //==============================================================================
67 Array<int> getPossibleSampleRates() override;
68 Array<int> getPossibleBitDepths() override;
69 bool canDoStereo() override;
70 bool canDoMono() override;
71
72 #if JUCE_MAC
73 bool canHandleFile (const File& fileToTest) override;
74 #endif
75
76 //==============================================================================
77 AudioFormatReader* createReaderFor (InputStream* sourceStream,
78 bool deleteStreamIfOpeningFails) override;
79
80 MemoryMappedAudioFormatReader* createMemoryMappedReader (const File&) override;
81 MemoryMappedAudioFormatReader* createMemoryMappedReader (FileInputStream*) override;
82
83 AudioFormatWriter* createWriterFor (OutputStream* streamToWriteTo,
84 double sampleRateToUse,
85 unsigned int numberOfChannels,
86 int bitsPerSample,
87 const StringPairArray& metadataValues,
88 int qualityOptionIndex) override;
89 using AudioFormat::createWriterFor;
90
91 private:
92 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(AiffAudioFormat)
93};
94
95} // namespace juce
juce::AiffAudioFormat
Definition: juce_AiffAudioFormat.h:39
juce::AiffAudioFormat::appleDenominator
static const char *const appleDenominator
Definition: juce_AiffAudioFormat.h:58
juce::AiffAudioFormat::appleOneShot
static const char *const appleOneShot
Definition: juce_AiffAudioFormat.h:50
juce::AiffAudioFormat::appleNumerator
static const char *const appleNumerator
Definition: juce_AiffAudioFormat.h:60
juce::AiffAudioFormat::appleTag
static const char *const appleTag
Definition: juce_AiffAudioFormat.h:62
juce::AiffAudioFormat::appleBeats
static const char *const appleBeats
Definition: juce_AiffAudioFormat.h:56
juce::AiffAudioFormat::appleRootSet
static const char *const appleRootSet
Definition: juce_AiffAudioFormat.h:52
juce::AiffAudioFormat::appleKey
static const char *const appleKey
Definition: juce_AiffAudioFormat.h:64
juce::AiffAudioFormat::appleRootNote
static const char *const appleRootNote
Definition: juce_AiffAudioFormat.h:54
juce::Array
Definition: juce_Array.h:56
juce::AudioFormatReader
Definition: juce_AudioFormatReader.h:45
juce::AudioFormatWriter
Definition: juce_AudioFormatWriter.h:45
juce::AudioFormat
Definition: juce_AudioFormat.h:40
juce::FileInputStream
Definition: juce_FileInputStream.h:35
juce::File
Definition: juce_File.h:41
juce::InputStream
Definition: juce_InputStream.h:37
juce::MemoryMappedAudioFormatReader
Definition: juce_MemoryMappedAudioFormatReader.h:48
juce::OutputStream
Definition: juce_OutputStream.h:38
juce::StringPairArray
Definition: juce_StringPairArray.h:35