|
Audacity
3.0.3
|
Go to the documentation of this file.
28 #ifndef __AUDACITY_ODDecodeFLACTask__
29 #define __AUDACITY_ODDecodeFLACTask__
35 #include "FLAC++/decoder.h"
55 std::unique_ptr<ODTask>
Clone()
const override;
71 set_metadata_ignore_all();
72 set_metadata_respond(FLAC__METADATA_TYPE_VORBIS_COMMENT);
73 set_metadata_respond(FLAC__METADATA_TYPE_STREAMINFO);
87 FLAC__StreamDecoderWriteStatus
write_callback(
const FLAC__Frame *frame,
88 const FLAC__int32 *
const buffer[])
override;
90 void error_callback(FLAC__StreamDecoderErrorStatus status)
override;
93 #include "../blockfile/ODDecodeBlockFile.h"
A Track that contains audio waveform data.
ODDecodeFlacTask()
Constructs an ODTask.
unsigned int mDecodeBufferWritePosition
ODFLACFile * GetFlacFile()
FLAC specific file (inherited from FLAC::Decoder::File)
An ImportFileHandle for FLAC data.
ODFLACFile(ODFlacDecoder *decoder)
FLAC__StreamDecoderWriteStatus write_callback(const FLAC__Frame *frame, const FLAC__int32 *const buffer[]) override
An AliasBlockFile that references uncompressed data in an existing file.
A class representing a modular task to be used with the On-Demand structures.
virtual ~ODDecodeFlacTask()
unsigned long mNumChannels
unsigned long mSampleRate
unsigned int mTargetChannel
bool get_was_error() const
std::unique_ptr< ODTask > Clone() const override
A class representing a modular task to be used with the On-Demand structures.
bool ReadHeader() override
class to decode a particular file (one per file). Saves info such as filename and length (after the h...
void error_callback(FLAC__StreamDecoderErrorStatus status) override
void metadata_callback(const FLAC__StreamMetadata *metadata) override
unsigned long mBitsPerSample
std::unique_ptr< ODFLACFile > mFile
class to decode a particular file (one per file). Saves info such as filename and length (after the h...
unsigned int mDecodeBufferLen
int Decode(SampleBuffer &data, sampleFormat &format, sampleCount start, size_t len, unsigned int channel) override
Positions or offsets within audio files need a wide type.
FLAC__uint64 mSamplesDone
unsigned int GetODType() override
sampleCount mLastDecodeStartSample
ODFlacDecoder(const wxString &fileName)
This should handle unicode converted to UTF-8 on mac/linux, but OD TODO:check on windows.
ODFileDecoder * CreateFileDecoder(const wxString &fileName) override
Creates an ODFileDecoder that decodes a file of filetype the subclass handles.