da_mpg123_decode

Decode MPEG Audio from inmemory to outmemory. This is very close to a drop-in replacement for old mpglib. When you give zero-sized output buffer the input will be parsed until decoded data is available. This enables you to get MPG123_NEW_FORMAT (and query it) without taking decoded data. Think of this function being the union of mpg123_read() and mpg123_feed() (which it actually is, sort of;-). You can actually always decide if you want those specialized functions in separate steps or one call this one here. \param mh handle \param inmemory input buffer \param inmemsize number of input bytes \param outmemory output buffer \param outmemsize maximum number of output bytes \param done address to store the number of actually decoded bytes to \return error/message code (watch out especially for MPG123_NEED_MORE)

alias da_mpg123_decode = int function(
,
const ubyte* inmemory
,
size_t inmemsize
,
ubyte* outmemory
,
size_t outmemsize
,
size_t* done
)

Meta