ReactOS 0.4.16-dev-297-gc569aee
|
Modules | |
mpg123 metadata handling | |
Classes | |
struct | mpg123_frameinfo |
struct | mpg123_moreinfo |
Enumerations | |
enum | mpg123_vbr { MPG123_CBR =0 , MPG123_VBR , MPG123_ABR } |
enum | mpg123_version { MPG123_1_0 =0 , MPG123_2_0 , MPG123_2_5 } |
enum | mpg123_mode { MPG123_M_STEREO =0 , MPG123_M_JOINT , MPG123_M_DUAL , MPG123_M_MONO } |
enum | mpg123_flags { MPG123_CRC =0x1 , MPG123_COPYRIGHT =0x2 , MPG123_PRIVATE =0x4 , MPG123_ORIGINAL =0x8 } |
enum | mpg123_state { MPG123_ACCURATE = 1 , MPG123_BUFFERFILL , MPG123_FRANKENSTEIN , MPG123_FRESH_DECODER , MPG123_ENC_DELAY , MPG123_ENC_PADDING , MPG123_DEC_DELAY } |
Functions | |
MPG123_EXPORT int | mpg123_info (mpg123_handle *mh, struct mpg123_frameinfo *mi) |
MPG123_EXPORT int | mpg123_set_moreinfo (mpg123_handle *mh, struct mpg123_moreinfo *mi) |
MPG123_EXPORT size_t | mpg123_safe_buffer (void) |
MPG123_EXPORT int | mpg123_scan (mpg123_handle *mh) |
MPG123_EXPORT off_t | mpg123_framelength (mpg123_handle *mh) |
MPG123_EXPORT off_t | mpg123_length (mpg123_handle *mh) |
MPG123_EXPORT int | mpg123_set_filesize (mpg123_handle *mh, off_t size) |
MPG123_EXPORT double | mpg123_tpf (mpg123_handle *mh) |
MPG123_EXPORT int | mpg123_spf (mpg123_handle *mh) |
MPG123_EXPORT long | mpg123_clip (mpg123_handle *mh) |
MPG123_EXPORT int | mpg123_getstate (mpg123_handle *mh, enum mpg123_state key, long *val, double *fval) |
Enumeration of the MPEG Audio flag bits
Definition at line 1030 of file mpg123.h.
Enumeration of the MPEG Audio mode. Only the mono mode has 1 channel, the others have 2 channels.
Enumerator | |
---|---|
MPG123_M_STEREO | Standard Stereo. |
MPG123_M_JOINT | Joint Stereo. |
MPG123_M_DUAL | Dual Channel. |
MPG123_M_MONO | Single Channel. |
The key values for state information from mpg123_getstate().
Enumerator | |
---|---|
MPG123_ACCURATE | Query if positons are currently accurate (integer value, 0 if false, 1 if true). |
MPG123_BUFFERFILL | Get fill of internal (feed) input buffer as integer byte count returned as long and as double. An error is returned on integer overflow while converting to (signed) long, but the returned floating point value shold still be fine. |
MPG123_FRANKENSTEIN | Stream consists of carelessly stitched together files. Seeking may yield unexpected results (also with MPG123_ACCURATE, it may be confused). |
MPG123_FRESH_DECODER | Decoder structure has been updated, possibly indicating changed stream (integer value, 0 if false, 1 if true). Flag is cleared after retrieval. |
MPG123_ENC_DELAY | Encoder delay read from Info tag (layer III, -1 if unknown). |
MPG123_ENC_PADDING | Encoder padding read from Info tag (layer III, -1 if unknown). |
MPG123_DEC_DELAY | Decoder delay (for layer III only, -1 otherwise). |
Definition at line 1157 of file mpg123.h.
Enumeration of the mode types of Variable Bitrate
Enumerator | |
---|---|
MPG123_CBR | Constant Bitrate Mode (default) |
MPG123_VBR | Variable Bitrate Mode |
MPG123_ABR | Average Bitrate Mode |
Enumeration of the MPEG Versions
Enumerator | |
---|---|
MPG123_1_0 | MPEG Version 1.0 |
MPG123_2_0 | MPEG Version 2.0 |
MPG123_2_5 | MPEG Version 2.5 |
MPG123_EXPORT long mpg123_clip | ( | mpg123_handle * | mh | ) |
Get and reset the clip count.
mh | handle |
Definition at line 1061 of file libmpg123.c.
MPG123_EXPORT off_t mpg123_framelength | ( | mpg123_handle * | mh | ) |
Return, if possible, the full (expected) length of current track in MPEG frames.
mh | handle |
Definition at line 208 of file lfs_alias.c.
Referenced by mpg123_framelength().
MPG123_EXPORT int mpg123_getstate | ( | mpg123_handle * | mh, |
enum mpg123_state | key, | ||
long * | val, | ||
double * | fval | ||
) |
Get various current decoder/stream state information.
mh | handle |
key | the key to identify the information to give. |
val | the address to return (long) integer values to |
fval | the address to return floating point values to |
Definition at line 360 of file libmpg123.c.
MPG123_EXPORT int mpg123_info | ( | mpg123_handle * | mh, |
struct mpg123_frameinfo * | mi | ||
) |
Get frame information about the MPEG audio bitstream and store it in a mpg123_frameinfo structure.
mh | handle |
mi | address of existing frameinfo structure to write to |
Definition at line 1087 of file libmpg123.c.
MPG123_EXPORT off_t mpg123_length | ( | mpg123_handle * | mh | ) |
Return, if possible, the full (expected) length of current track in samples (PCM frames).
This relies either on an Info frame at the beginning or a previous call to mpg123_scan() to get the real number of MPEG frames in a file. It will guess based on file size if neither Info frame nor scan data are present. In any case, there is no guarantee that the decoder will not give you more data, for example in case the open file gets appended to during decoding.
mh | handle |
Definition at line 214 of file lfs_alias.c.
Referenced by mpg123_length().
MPG123_EXPORT size_t mpg123_safe_buffer | ( | void | ) |
Get the safe output buffer size for all cases (when you want to replace the internal buffer)
Definition at line 647 of file libmpg123.c.
Referenced by mpg123_outblock().
MPG123_EXPORT int mpg123_scan | ( | mpg123_handle * | mh | ) |
Make a full parsing scan of each frame in the file. ID3 tags are found. An accurate length value is stored. Seek index will be filled. A seek back to current position is performed. At all, this function refuses work when stream is not seekable.
mh | handle |
Definition at line 1461 of file libmpg123.c.
Referenced by mpg123_seek(), and open_fixed_post().
MPG123_EXPORT int mpg123_set_filesize | ( | mpg123_handle * | mh, |
off_t | size | ||
) |
Override the value for file size in bytes. Useful for getting sensible track length values in feed mode or for HTTP streams.
mh | handle |
size | file size in bytes |
Definition at line 507 of file lfs_wrap.c.
Referenced by mpg123_set_filesize().
MPG123_EXPORT int mpg123_set_moreinfo | ( | mpg123_handle * | mh, |
struct mpg123_moreinfo * | mi | ||
) |
Trigger collection of additional decoder information while decoding.
mh | handle |
mi | pointer to data storage (NULL to disable collection) |
Definition at line 638 of file frame.c.
MPG123_EXPORT int mpg123_spf | ( | mpg123_handle * | mh | ) |
MPG123_EXPORT double mpg123_tpf | ( | mpg123_handle * | mh | ) |
Get MPEG frame duration in seconds.
mh | handle |
Definition at line 980 of file parse.c.
Referenced by get_songlen(), mpg123_position(), and mpg123_timeframe().