tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_FloatAudioFileFormat.h
Go to the documentation of this file.
1 /*
2 ,--. ,--. ,--. ,--.
3 ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2024
4 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
5 | | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
6 `---' `--' `--`--'`---'`--'`--' `---' `--' `---' `--''--' www.tracktion.com
7
8 Tracktion Engine uses a GPL/commercial licence - see LICENCE.md for details.
9*/
10
11namespace tracktion { inline namespace engine
12{
13
18{
19public:
21 ~FloatAudioFormat() override;
22
23 //==============================================================================
24 juce::Array<int> getPossibleSampleRates() override;
25 juce::Array<int> getPossibleBitDepths() override;
26 bool canDoStereo() override;
27 bool canDoMono() override;
28 bool canHandleFile (const juce::File&) override;
29
30 //==============================================================================
32 juce::AudioFormatReader* createReaderFor (juce::InputStream*, bool deleteStreamIfOpeningFails) override;
33
35 juce::MemoryMappedAudioFormatReader* createMemoryMappedReader (const juce::File&) override;
36
38 juce::AudioFormatWriter* createWriterFor (juce::OutputStream*, double sampleRate,
39 unsigned int numChannels, int bitsPerSample,
40 const juce::StringPairArray& metadataValues,
41 int qualityOptionIndex) override;
42};
43
44}} // namespace tracktion { inline namespace engine
virtual MemoryMappedAudioFormatReader * createMemoryMappedReader(const File &file)
virtual AudioFormatWriter * createWriterFor(OutputStream *streamToWriteTo, double sampleRateToUse, unsigned int numberOfChannels, int bitsPerSample, const StringPairArray &metadataValues, int qualityOptionIndex)=0
virtual AudioFormatReader * createReaderFor(InputStream *sourceStream, bool deleteStreamIfOpeningFails)=0
A raw, proprietary, simple floating point format used for freeze files, etc.