libmpcdec: include/mpcdec/reader.h File Reference

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

# reader.h File Reference

Go to the source code of this file.

## Classes

struct | mpc_reader_t
| Stream reader interface structure. More...
struct | mpc_reader_file_t

## Typedefs

typedef mpc_reader_t | mpc_reader
| Stream reader interface structure.
typedef mpc_reader_file_t | mpc_reader_file

## Functions

void | mpc_reader_setup_file_reader (mpc_reader_file *r, FILE *input)

## Detailed Description

Definition in file reader.h.

## Typedef Documentation

typedef struct mpc_reader_t mpc_reader

| 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.

## Function Documentation

void mpc_reader_setup_file_reader | ( | mpc_reader_file * | r,
|  | FILE * | input
| ) |

Initializes reader with default stdio file reader implementation. Use this if you're just reading from a plain file.

Parameters:

  | r | reader struct to initalize
  | input | input stream to attach to the reader

Definition at line 82 of file mpc_reader.c.

References mpc_reader_t::canseek, mpc_reader_t::data, mpc_reader_file_t::file, mpc_reader_file_t::file_size, mpc_reader_t::get_size, mpc_reader_file_t::is_seekable, mpc_reader_t::read, mpc_reader_file_t::reader, mpc_reader_t::seek, and mpc_reader_t::tell.