![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
Functions | |
virtual bool | kodi::addon::CInstanceAudioDecoder::Init (const std::string &filename, unsigned int filecache, int &channels, int &samplerate, int &bitspersample, int64_t &totaltime, int &bitrate, AEDataFormat &format, std::vector< AEChannel > &channellist)=0 |
Initialize a decoder. More... | |
virtual int | kodi::addon::CInstanceAudioDecoder::ReadPCM (uint8_t *buffer, int size, int &actualsize)=0 |
Produce some noise. More... | |
virtual int64_t | kodi::addon::CInstanceAudioDecoder::Seek (int64_t time) |
Seek in output stream. More... | |
virtual bool | kodi::addon::CInstanceAudioDecoder::ReadTag (const std::string &file, std::string &title, std::string &artist, int &length) |
Read tag of a file. More... | |
virtual int | kodi::addon::CInstanceAudioDecoder::TrackCount (const std::string &file) |
Get number of tracks in a file. More... | |
|
pure virtual |
Initialize a decoder.
[in] | filename | The file to read |
[in] | filecache | The file cache size |
[out] | channels | Number of channels in output stream |
[out] | samplerate | Samplerate of output stream |
[out] | bitspersample | Bits per sample in output stream |
[out] | totaltime | Total time for stream |
[out] | bitrate | Average bitrate of input stream |
[out] | format | Data format for output stream |
[out] | channellist | Channel mapping for output stream |
|
pure virtual |
Produce some noise.
[in] | buffer | Output buffer |
[in] | size | Size of output buffer |
[out] | actualsize | Actual number of bytes written to output buffer |
Value | Description |
---|---|
0 | on success |
-1 | on end of stream |
1 | on failure |
|
inlinevirtual |
Read tag of a file.
[in] | file | File to read tag for |
[out] | title | Title of file |
[out] | artist | Artist of file |
[out] | length | Length of file |
|
inlinevirtual |
Seek in output stream.
[in] | time | Time position to seek to in milliseconds |
|
inlinevirtual |
Get number of tracks in a file.
[in] | file | File to read tag for |