|
MPD
0.20.18
|
The MPD Decoder API. More...
#include "check.h"#include "Client.hxx"#include "input/Ptr.hxx"#include "DecoderCommand.hxx"#include "DecoderPlugin.hxx"#include "ReplayGainInfo.hxx"#include "tag/Tag.hxx"#include "AudioFormat.hxx"#include "MixRampInfo.hxx"#include "config/Block.hxx"#include "Chrono.hxx"#include <stdint.h>Go to the source code of this file.
Data Structures | |
| class | StopDecoder |
| Throw an instance of this class to stop decoding the current song (successfully). More... | |
Functions | |
| size_t | decoder_read (DecoderClient *decoder, InputStream &is, void *buffer, size_t length) |
| Blocking read from the input stream. More... | |
| static size_t | decoder_read (DecoderClient &decoder, InputStream &is, void *buffer, size_t length) |
| bool | decoder_read_full (DecoderClient *decoder, InputStream &is, void *buffer, size_t size) |
| Blocking read from the input stream. More... | |
| bool | decoder_skip (DecoderClient *decoder, InputStream &is, size_t size) |
| Skip data on the InputStream. More... | |
The MPD Decoder API.
This is the public API which is used by decoder plugins to communicate with the mpd core.
Definition in file DecoderAPI.hxx.
| size_t decoder_read | ( | DecoderClient * | decoder, |
| InputStream & | is, | ||
| void * | buffer, | ||
| size_t | length | ||
| ) |
Blocking read from the input stream.
| decoder | the decoder object |
| is | the input stream to read from |
| buffer | the destination buffer |
| length | the maximum number of bytes to read |
|
inlinestatic |
Definition at line 72 of file DecoderAPI.hxx.
| bool decoder_read_full | ( | DecoderClient * | decoder, |
| InputStream & | is, | ||
| void * | buffer, | ||
| size_t | size | ||
| ) |
Blocking read from the input stream.
Attempts to fill the buffer completely; there is no partial result.
| bool decoder_skip | ( | DecoderClient * | decoder, |
| InputStream & | is, | ||
| size_t | size | ||
| ) |
Skip data on the InputStream.
1.8.14