libmpcdec  1.2.2
Classes | Typedefs | Functions
reader.h File Reference
#include <mpc/mpc_types.h>
#include <stdio.h>

Go to the source code of this file.

Classes

struct  mpc_reader_t
 

Typedefs

typedef struct mpc_reader_t mpc_reader
 Stream reader interface structure. More...
 

Functions

MPC_API mpc_status mpc_reader_init_stdio (mpc_reader *p_reader, const char *filename)
 
MPC_API mpc_status mpc_reader_init_stdio_stream (mpc_reader *p_reader, FILE *p_file)
 
MPC_API void mpc_reader_exit_stdio (mpc_reader *p_reader)
 

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.

Definition at line 54 of file reader.h.

Function Documentation

MPC_API void mpc_reader_exit_stdio ( mpc_reader p_reader)

Release reader with default stdio file reader implementation.

Parameters
rreader handle to release
MPC_API mpc_status mpc_reader_init_stdio ( mpc_reader p_reader,
const char *  filename 
)

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

Parameters
rp_reader handle to initialize
filenameinput filename to attach to the reader
MPC_API mpc_status mpc_reader_init_stdio_stream ( mpc_reader p_reader,
FILE *  p_file 
)

Initializes reader with default stdio file reader implementation. Use this if you prefer to open the file yourself.

Parameters
rp_reader handle to initialize
p_fileinput file handle (already open)