Main Page | Class List | File List | Class Members | File Members | Related Pages

mpc_reader_t Struct Reference

Stream reader interface structure. More...

#include <musepack.h>

List of all members.

Public Attributes

mpc_int32_t(* read )(void *t, void *ptr, mpc_int32_t size)
 Reads size bytes of data into buffer at ptr.
BOOL(* seek )(void *t, mpc_int32_t offset)
 Seeks to byte position offset.
mpc_int32_t(* tell )(void *t)
 Returns the current byte offset in the stream.
mpc_int32_t(* get_size )(void *t)
 Returns the total length of the source stream, in bytes.
BOOL(* canseek )(void *t)
 True if the stream is a seekable stream.
void * data


Detailed Description

Stream reader interface structure.

This is the structure you must supply to the musepack decoding library to feed it with raw data. Implement the five member functions to provide a functional reader.

Definition at line 27 of file musepack.h.


Member Data Documentation

void* mpc_reader_t::data
 

Optional field that can be used to identify a particular instance of reader or carry along data associated with that reader.

Definition at line 45 of file musepack.h.

Referenced by JumpID3v2(), and streaminfo_read().


The documentation for this struct was generated from the following file:
Generated on Sat Dec 11 14:43:51 2004 for libmusepack by  doxygen 1.3.9.1