#include <mpc/mpc_types.h>
#include <stdio.h>
Go to the source code of this file.
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.
MPC_API void mpc_reader_exit_stdio |
( |
mpc_reader * |
p_reader | ) |
|
Release reader with default stdio file reader implementation.
- Parameters
-
r | reader 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
-
r | p_reader handle to initialize |
filename | input 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
-
r | p_reader handle to initialize |
p_file | input file handle (already open) |