OpenShot Audio Library | OpenShotAudio 0.4.0

Loading...
Searching...
No Matches
juce_AiffAudioFormat.h
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
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 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26 namespace juce
27{
28
29//==============================================================================
37 class JUCE_API AiffAudioFormat : public AudioFormat
38{
39 public:
40 //==============================================================================
42 AiffAudioFormat();
43
45 ~AiffAudioFormat() override;
46
47 //==============================================================================
49 static const char* const appleOneShot;
51 static const char* const appleRootSet;
53 static const char* const appleRootNote;
55 static const char* const appleBeats;
57 static const char* const appleDenominator;
59 static const char* const appleNumerator;
61 static const char* const appleTag;
63 static const char* const appleKey;
64
65 //==============================================================================
66 Array<int> getPossibleSampleRates() override;
67 Array<int> getPossibleBitDepths() override;
68 bool canDoStereo() override;
69 bool canDoMono() override;
70
71 #if JUCE_MAC
72 bool canHandleFile (const File& fileToTest) override;
73 #endif
74
75 //==============================================================================
76 AudioFormatReader* createReaderFor (InputStream* sourceStream,
77 bool deleteStreamIfOpeningFails) override;
78
79 MemoryMappedAudioFormatReader* createMemoryMappedReader (const File&) override;
80 MemoryMappedAudioFormatReader* createMemoryMappedReader (FileInputStream*) override;
81
82 AudioFormatWriter* createWriterFor (OutputStream* streamToWriteTo,
83 double sampleRateToUse,
84 unsigned int numberOfChannels,
85 int bitsPerSample,
86 const StringPairArray& metadataValues,
87 int qualityOptionIndex) override;
88 using AudioFormat::createWriterFor;
89
90 private:
91 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AiffAudioFormat)
92};
93
94} // namespace juce
juce::AiffAudioFormat
Definition juce_AiffAudioFormat.h:38
juce::AiffAudioFormat::appleDenominator
static const char *const appleDenominator
Definition juce_AiffAudioFormat.h:57
juce::AiffAudioFormat::appleOneShot
static const char *const appleOneShot
Definition juce_AiffAudioFormat.h:49
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::appleRootSet
static const char *const appleRootSet
Definition juce_AiffAudioFormat.h:51
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
Definition juce_AudioFormat.h:39
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