MythTV  master
Public Member Functions | Private Attributes | List of all members
FlacEncoder Class Reference

#include <mythplugins/mythmusic/mythmusic/flacencoder.h>

Inheritance diagram for FlacEncoder:
[legend]
Collaboration diagram for FlacEncoder:
[legend]

Public Member Functions

 FlacEncoder (const QString &outfile, int qualitylevel, MusicMetadata *metadata)
 
 ~FlacEncoder () override
 
int addSamples (int16_t *bytes, unsigned int len) override
 
- Public Member Functions inherited from Encoder
 Encoder (QString outfile, int qualitylevel, MusicMetadata *metadata)
 
virtual ~Encoder ()
 
virtual bool isValid ()
 

Private Attributes

FLAC__StreamEncoder * m_encoder {nullptr}
 
unsigned int m_sampleIndex {0}
 
std::array< std::array< FLAC__int32, MAX_SAMPLES >, NUM_CHANNELSm_inputIn {}
 
std::array< FLAC__int32 *, NUM_CHANNELSm_input {}
 

Additional Inherited Members

- Protected Attributes inherited from Encoder
const QString m_outfile
 
FILE * m_out {nullptr}
 
int m_quality
 
MusicMetadatam_metadata {nullptr}
 

Detailed Description

Definition at line 17 of file flacencoder.h.

Constructor & Destructor Documentation

◆ FlacEncoder()

FlacEncoder::FlacEncoder ( const QString &  outfile,
int  qualitylevel,
MusicMetadata metadata 
)

Definition at line 20 of file flacencoder.cpp.

◆ ~FlacEncoder()

FlacEncoder::~FlacEncoder ( )
override

Definition at line 73 of file flacencoder.cpp.

Member Function Documentation

◆ addSamples()

int FlacEncoder::addSamples ( int16_t *  bytes,
unsigned int  len 
)
overridevirtual

Implements Encoder.

Definition at line 87 of file flacencoder.cpp.

Referenced by ~FlacEncoder().

Member Data Documentation

◆ m_encoder

FLAC__StreamEncoder* FlacEncoder::m_encoder {nullptr}
private

Definition at line 25 of file flacencoder.h.

Referenced by addSamples(), FlacEncoder(), and ~FlacEncoder().

◆ m_sampleIndex

unsigned int FlacEncoder::m_sampleIndex {0}
private

Definition at line 26 of file flacencoder.h.

Referenced by addSamples().

◆ m_inputIn

std::array<std::array<FLAC__int32,MAX_SAMPLES>,NUM_CHANNELS> FlacEncoder::m_inputIn {}
private

Definition at line 28 of file flacencoder.h.

Referenced by FlacEncoder().

◆ m_input

std::array<FLAC__int32 *,NUM_CHANNELS> FlacEncoder::m_input {}
private

Definition at line 29 of file flacencoder.h.

Referenced by addSamples(), and FlacEncoder().


The documentation for this class was generated from the following files: