MythTV  master
Public Member Functions | Protected Attributes | List of all members
Encoder Class Referenceabstract

#include <encoder.h>

Inheritance diagram for Encoder:
Inheritance graph
Collaboration diagram for Encoder:
Collaboration graph

Public Member Functions

 Encoder (QString outfile, int qualitylevel, MusicMetadata *metadata)
virtual ~Encoder ()
virtual int addSamples (int16_t *bytes, unsigned int len)=0
virtual bool isValid ()

Protected Attributes

const QString m_outfile
FILE * m_out {nullptr}
int m_quality
MusicMetadatam_metadata {nullptr}

Detailed Description

Definition at line 13 of file mythplugins/mythmusic/mythmusic/encoder.h.

Constructor & Destructor Documentation

◆ Encoder()

Encoder::Encoder ( QString  outfile,
int  qualitylevel,
MusicMetadata metadata 

Definition at line 12 of file encoder.cpp.

◆ ~Encoder()

Encoder::~Encoder ( )

Definition at line 28 of file encoder.cpp.

Member Function Documentation

◆ addSamples()

virtual int Encoder::addSamples ( int16_t *  bytes,
unsigned int  len 
pure virtual

Implemented in LameEncoder, FlacEncoder, and VorbisEncoder.

◆ isValid()

virtual bool Encoder::isValid ( )

Definition at line 20 of file mythplugins/mythmusic/mythmusic/encoder.h.

Member Data Documentation

◆ m_outfile

const QString Encoder::m_outfile

◆ m_out

FILE* Encoder::m_out {nullptr}

◆ m_quality

int Encoder::m_quality

Definition at line 25 of file mythplugins/mythmusic/mythmusic/encoder.h.

◆ m_metadata

MusicMetadata* Encoder::m_metadata {nullptr}

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