20 #ifndef MPD_DECODER_DSDLIB_HXX
21 #define MPD_DECODER_DSDLIB_HXX
37 bool Equals(
const char *s)
const;
45 constexpr uint64_t
Read()
const {
46 return (uint64_t(
FromLE32(hi)) << 32) |
56 constexpr uint64_t
Read()
const {
57 return (uint64_t(
FromBE32(hi)) << 32) |
An interface between the decoder plugin and the MPD core.
A callback table for receiving metadata of a song.
bool dsdlib_skip(DecoderClient *client, InputStream &is, offset_type delta)
static constexpr uint32_t FromLE32(uint32_t value)
Converts a 32bit value from little endian to the system's byte order.
void dsdlib_tag_id3(InputStream &is, const TagHandler &handler, void *handler_ctx, offset_type tagoffset)
Add tags from ID3 tag.
constexpr uint64_t Read() const
gcc_const bool dsdlib_valid_freq(uint32_t samplefreq)
Check if the sample frequency is a valid DSD frequency.
uint64_t offset_type
A type for absolute offsets in a file.
static constexpr uint32_t FromBE32(uint32_t value)
Converts a 32bit value from big endian to the system's byte order.
constexpr uint64_t Read() const
gcc_pure bool Equals(const char *s) const
bool dsdlib_skip_to(DecoderClient *client, InputStream &is, offset_type offset)