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

#include <flacencoder.h>

Inheritance diagram for FlacEncoder:
Inheritance graph
Collaboration diagram for FlacEncoder:
Collaboration graph

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_ENCODERm_encoder {nullptr}
unsigned int m_sampleIndex {0}
FLAC__int32 m_inputIn [NUM_CHANNELS][MAX_SAMPLES] {}
FLAC__int32 * m_input [NUM_CHANNELS] {}

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 82 of file flacencoder.h.

Constructor & Destructor Documentation

◆ FlacEncoder()

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

Definition at line 28 of file flacencoder.cpp.

◆ ~FlacEncoder()

FlacEncoder::~FlacEncoder ( )

Definition at line 86 of file flacencoder.cpp.

Member Function Documentation

◆ addSamples()

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

Implements Encoder.

Definition at line 100 of file flacencoder.cpp.

Referenced by ~FlacEncoder().

Member Data Documentation

◆ m_encoder

FLAC_ENCODER* FlacEncoder::m_encoder {nullptr}

Definition at line 90 of file flacencoder.h.

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

◆ m_sampleIndex

unsigned int FlacEncoder::m_sampleIndex {0}

Definition at line 91 of file flacencoder.h.

Referenced by addSamples().

◆ m_inputIn

FLAC__int32 FlacEncoder::m_inputIn[NUM_CHANNELS][MAX_SAMPLES] {}

Definition at line 92 of file flacencoder.h.

Referenced by FlacEncoder().

◆ m_input

FLAC__int32* FlacEncoder::m_input[NUM_CHANNELS] {}

Definition at line 93 of file flacencoder.h.

Referenced by addSamples(), and FlacEncoder().

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