MPD
0.20.18
|
#include <EncoderInterface.hxx>
Public Member Functions | |
virtual | ~PreparedEncoder () |
virtual Encoder * | Open (AudioFormat &audio_format)=0 |
Opens the object. More... | |
virtual const char * | GetMimeType () const |
Get mime type of encoded content. More... | |
Definition at line 112 of file EncoderInterface.hxx.
|
inlinevirtual |
Definition at line 114 of file EncoderInterface.hxx.
|
inlinevirtual |
Get mime type of encoded content.
Definition at line 137 of file EncoderInterface.hxx.
|
pure virtual |
Opens the object.
You must call this prior to using it. Before you free it, you must call Close(). You may open and close (reuse) one encoder any number of times.
After this function returns successfully and before the first encoder_write() call, you should invoke encoder_read() to obtain the file header.
Throws #std::runtime_error on error.
audio_format | the encoder's input audio format; the plugin may modify the struct to adapt it to its abilities |