tracktion-engine
3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_engine
audio_files
formats
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
11
namespace
tracktion
{
inline
namespace
engine
12
{
13
17
class
FloatAudioFormat
:
public
juce::AudioFormat
18
{
19
public
:
20
FloatAudioFormat
();
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
//==============================================================================
31
using
juce::AudioFormat::createReaderFor
;
32
juce::AudioFormatReader
* createReaderFor (
juce::InputStream
*,
bool
deleteStreamIfOpeningFails)
override
;
33
34
using
juce::AudioFormat::createMemoryMappedReader
;
35
juce::MemoryMappedAudioFormatReader
* createMemoryMappedReader (
const
juce::File
&)
override
;
36
37
using
juce::AudioFormat::createWriterFor
;
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
juce::Array
juce::AudioFormatReader
juce::AudioFormatWriter
juce::AudioFormat
juce::AudioFormat::createMemoryMappedReader
virtual MemoryMappedAudioFormatReader * createMemoryMappedReader(const File &file)
juce::AudioFormat::createWriterFor
virtual AudioFormatWriter * createWriterFor(OutputStream *streamToWriteTo, double sampleRateToUse, unsigned int numberOfChannels, int bitsPerSample, const StringPairArray &metadataValues, int qualityOptionIndex)=0
juce::AudioFormat::createReaderFor
virtual AudioFormatReader * createReaderFor(InputStream *sourceStream, bool deleteStreamIfOpeningFails)=0
juce::File
juce::InputStream
juce::MemoryMappedAudioFormatReader
juce::OutputStream
juce::StringPairArray
tracktion::engine::FloatAudioFormat
A raw, proprietary, simple floating point format used for freeze files, etc.
Definition
tracktion_FloatAudioFileFormat.h:18
tracktion
Definition
tracktion_AudioReader.h:23
« « « Anklang Documentation