ReactOS 0.4.16-dev-257-g6aa11ac
|
Modules | |
mpg123 low level I/O | |
Typedefs | |
typedef struct mpg123_pars_struct | mpg123_pars |
Functions | |
MPG123_EXPORT mpg123_handle * | mpg123_parnew (mpg123_pars *mp, const char *decoder, int *error) |
MPG123_EXPORT mpg123_pars * | mpg123_new_pars (int *error) |
MPG123_EXPORT void | mpg123_delete_pars (mpg123_pars *mp) |
MPG123_EXPORT int | mpg123_fmt_none (mpg123_pars *mp) |
MPG123_EXPORT int | mpg123_fmt_all (mpg123_pars *mp) |
MPG123_EXPORT int | mpg123_fmt (mpg123_pars *mp, long rate, int channels, int encodings) |
MPG123_EXPORT int | mpg123_fmt2 (mpg123_pars *mp, long rate, int channels, int encodings) |
MPG123_EXPORT int | mpg123_fmt_support (mpg123_pars *mp, long rate, int encoding) |
MPG123_EXPORT int | mpg123_par (mpg123_pars *mp, enum mpg123_parms type, long value, double fvalue) |
MPG123_EXPORT int | mpg123_getpar (mpg123_pars *mp, enum mpg123_parms type, long *value, double *fvalue) |
Direct access to a parameter set without full handle around it. Possible uses:
The functions for handling mpg123_pars (mpg123_par() and mpg123_fmt() family) directly return a fully qualified mpg123 error code, the ones operating on full handles normally MPG123_OK or MPG123_ERR, storing the specific error code itseld inside the handle.
typedef struct mpg123_pars_struct mpg123_pars |
MPG123_EXPORT void mpg123_delete_pars | ( | mpg123_pars * | mp | ) |
MPG123_EXPORT int mpg123_fmt | ( | mpg123_pars * | mp, |
long | rate, | ||
int | channels, | ||
int | encodings | ||
) |
Set the audio format support of a mpg123_pars in detail:
mp | parameter handle |
rate | The sample rate value (in Hertz). |
channels | A combination of MPG123_STEREO and MPG123_MONO. |
encodings | A combination of accepted encodings for rate and channels, p.ex MPG123_ENC_SIGNED16|MPG123_ENC_ULAW_8 (or 0 for no support). |
Definition at line 524 of file format.c.
MPG123_EXPORT int mpg123_fmt2 | ( | mpg123_pars * | mp, |
long | rate, | ||
int | channels, | ||
int | encodings | ||
) |
Set the audio format support of a mpg123_pars in detail:
mp | parameter handle |
rate | The sample rate value (in Hertz). Special value 0 means all rates (reason for this variant of mpg123_fmt). |
channels | A combination of MPG123_STEREO and MPG123_MONO. |
encodings | A combination of accepted encodings for rate and channels, p.ex MPG123_ENC_SIGNED16|MPG123_ENC_ULAW_8 (or 0 for no support). |
Definition at line 485 of file format.c.
Referenced by mpg123_fmt(), and mpg123_format2().
MPG123_EXPORT int mpg123_fmt_all | ( | mpg123_pars * | mp | ) |
Configure mpg123 parameters to accept all formats (also any custom rate you may set) – this is default.
mp | parameter handle |
Definition at line 449 of file format.c.
Referenced by frame_default_pars(), and mpg123_format_all().
MPG123_EXPORT int mpg123_fmt_none | ( | mpg123_pars * | mp | ) |
Configure mpg123 parameters to accept no output format at all, use before specifying supported formats with mpg123_format
mp | parameter handle |
Definition at line 428 of file format.c.
Referenced by mpg123_format_none().
MPG123_EXPORT int mpg123_fmt_support | ( | mpg123_pars * | mp, |
long | rate, | ||
int | encoding | ||
) |
Check to see if a specific format at a specific rate is supported by mpg123_pars.
mp | parameter handle |
rate | sampling rate |
encoding | encoding |
Definition at line 537 of file format.c.
Referenced by mpg123_format_support().
MPG123_EXPORT int mpg123_getpar | ( | mpg123_pars * | mp, |
enum mpg123_parms | type, | ||
long * | value, | ||
double * | fvalue | ||
) |
Get a specific parameter, for a specific mpg123_pars. See the mpg123_parms enumeration for a list of available parameters.
mp | parameter handle |
type | parameter choice |
value | integer value return address |
fvalue | floating point value return address |
Definition at line 278 of file libmpg123.c.
Referenced by mpg123_getparam().
MPG123_EXPORT mpg123_pars * mpg123_new_pars | ( | int * | error | ) |
Allocate memory for and return a pointer to a new mpg123_pars
error | error code return address |
MPG123_EXPORT int mpg123_par | ( | mpg123_pars * | mp, |
enum mpg123_parms | type, | ||
long | value, | ||
double | fvalue | ||
) |
Set a specific parameter, for a specific mpg123_pars, using a parameter type key chosen from the mpg123_parms enumeration, to the specified value.
mp | parameter handle |
type | parameter choice |
value | integer value |
fvalue | floating point value |
Definition at line 152 of file libmpg123.c.
Referenced by mpg123_param().
MPG123_EXPORT mpg123_handle * mpg123_parnew | ( | mpg123_pars * | mp, |
const char * | decoder, | ||
int * | error | ||
) |
Create a handle with preset parameters.
mp | parameter handle |
decoder | decoder choice |
error | error code return address |
Definition at line 63 of file libmpg123.c.
Referenced by mpg123_new().