You could access this page securely.

API documentation for libmpg123, libout123, and libsyn123

Note: This API doc is automatically generated from the current development version that you can get via Subversion or as a daily snapshot from http://mpg123.org/snapshot. There may be differences (additions) compared to the latest stable release. See NEWS.libmpg123, NEWS.libout123, NEWS.libsyn123, and the overall NEWS file on libmpg123 versions and important changes between them.
Let me emphasize that the policy for the lib*123 family is to always stay backwards compatible -- only additions are planned (and it's not yet planned to change the plans;-).
Loading...
Searching...
No Matches
mpg123.h
Go to the documentation of this file.
1/*
2 libmpg123: MPEG Audio Decoder library
3
4 copyright 1995-2023 by the mpg123 project
5 free software under the terms of the LGPL 2.1
6 see COPYING and AUTHORS files in distribution or http://mpg123.org
7*/
8
9#ifndef MPG123_LIB_H
10#define MPG123_LIB_H
11
12#include "fmt123.h"
13
24#define MPG123_API_VERSION 49
26#define MPG123_PATCHLEVEL 4
27
28#ifndef MPG123_EXPORT
36#ifdef BUILD_MPG123_DLL
37/* The dll exports. */
38#define MPG123_EXPORT __declspec(dllexport)
39#else
40#ifdef LINK_MPG123_DLL
41/* The exe imports. */
42#define MPG123_EXPORT __declspec(dllimport)
43#else
44/* Nothing on normal/UNIX builds */
45#define MPG123_EXPORT
46#endif
47#endif
48#endif
49
78#ifndef MPG123_ENUM_API
79
80#define mpg123_param mpg123_param2
81#define mpg123_getparam mpg123_getparam2
82#define mpg123_feature mpg123_feature2
83#define mpg123_eq mpg123_eq2
84#define mpg123_geteq mpg123_geteq2
85#define mpg123_frameinfo mpg123_frameinfo2
86#define mpg123_info mpg123_info2
87#define mpg123_getstate mpg123_getstate2
88#define mpg123_enc_from_id3 mpg123_enc_from_id3_2
89#define mpg123_store_utf8 mpg123_store_utf8_2
90#define mpg123_par mpg123_par2
91#define mpg123_getpar mpg123_getpar2
92
93#endif
94
95#include <stddef.h>
96#include <stdint.h>
97
98#ifndef MPG123_PORTABLE_API
99#include <sys/types.h>
101#ifdef _MSC_VER
102typedef ptrdiff_t mpg123_ssize_t;
103#else
104typedef ssize_t mpg123_ssize_t;
105#endif
106#endif
107
108
135#ifndef MPG123_PORTABLE_API
165#if (!defined MPG123_NO_LARGENAME) && ((defined _FILE_OFFSET_BITS) || (defined MPG123_LARGESUFFIX))
166
167/* Need some trickery to concatenate the value(s) of the given macro(s). */
168#define MPG123_MACROCAT_REALLY(a, b) a ## b
169#define MPG123_MACROCAT(a, b) MPG123_MACROCAT_REALLY(a, b)
170#ifndef MPG123_LARGESUFFIX
171#define MPG123_LARGESUFFIX MPG123_MACROCAT(_, _FILE_OFFSET_BITS)
172#endif
173#define MPG123_LARGENAME(func) MPG123_MACROCAT(func, MPG123_LARGESUFFIX)
174
175#define mpg123_open_fixed MPG123_LARGENAME(mpg123_open_fixed)
176#define mpg123_open MPG123_LARGENAME(mpg123_open)
177#define mpg123_open_fd MPG123_LARGENAME(mpg123_open_fd)
178#define mpg123_open_handle MPG123_LARGENAME(mpg123_open_handle)
179#define mpg123_framebyframe_decode MPG123_LARGENAME(mpg123_framebyframe_decode)
180#define mpg123_decode_frame MPG123_LARGENAME(mpg123_decode_frame)
181#define mpg123_tell MPG123_LARGENAME(mpg123_tell)
182#define mpg123_tellframe MPG123_LARGENAME(mpg123_tellframe)
183#define mpg123_tell_stream MPG123_LARGENAME(mpg123_tell_stream)
184#define mpg123_seek MPG123_LARGENAME(mpg123_seek)
185#define mpg123_feedseek MPG123_LARGENAME(mpg123_feedseek)
186#define mpg123_seek_frame MPG123_LARGENAME(mpg123_seek_frame)
187#define mpg123_timeframe MPG123_LARGENAME(mpg123_timeframe)
188#define mpg123_index MPG123_LARGENAME(mpg123_index)
189#define mpg123_set_index MPG123_LARGENAME(mpg123_set_index)
190#define mpg123_position MPG123_LARGENAME(mpg123_position)
191#define mpg123_length MPG123_LARGENAME(mpg123_length)
192#define mpg123_framelength MPG123_LARGENAME(mpg123_framelength)
193#define mpg123_set_filesize MPG123_LARGENAME(mpg123_set_filesize)
194#define mpg123_replace_reader MPG123_LARGENAME(mpg123_replace_reader)
195#define mpg123_replace_reader_handle MPG123_LARGENAME(mpg123_replace_reader_handle)
196#define mpg123_framepos MPG123_LARGENAME(mpg123_framepos)
197
198#endif /* largefile hackery */
199#endif
200
203#ifdef __cplusplus
204extern "C" {
205#endif
206
217struct mpg123_handle_struct;
218
222typedef struct mpg123_handle_struct mpg123_handle;
223
231const char *mpg123_distversion(unsigned int *major, unsigned int *minor, unsigned int *patch);
232
237unsigned int mpg123_libversion(unsigned int *patch);
238
253
260
269MPG123_EXPORT mpg123_handle *mpg123_new(const char* decoder, int *error);
270
275
282
312
377
386
387#ifdef MPG123_ENUM_API
400, enum mpg123_parms type, long value, double fvalue );
401#endif
402
415, int type, long value, double fvalue );
416
417#ifdef MPG123_ENUM_API
430, enum mpg123_parms type, long *value, double *fvalue );
431#endif
432
445, int type, long *value, double *fvalue );
446
469
470#ifdef MPG123_ENUM_API
480#endif
481
491
579
584MPG123_EXPORT const char* mpg123_plain_strerror(int errcode);
585
594
600
616
625
631MPG123_EXPORT int mpg123_decoder(mpg123_handle *mh, const char* decoder_name);
632
643
675
683MPG123_EXPORT void mpg123_rates(const long **list, size_t *number);
684
689MPG123_EXPORT void mpg123_encodings(const int **list, size_t *number);
690
695
702
709
717, long rate, int channels, int encodings );
718
730, long rate, int channels, int encodings );
731
740, long rate, int encoding );
741
754, long *rate, int *channels, int *encoding );
755
768, long *rate, int *channels, int *encoding, int clear_flag );
769
780#ifndef MPG123_PORTABLE_API
825, int channels, int encoding);
826
842MPG123_EXPORT int mpg123_open(mpg123_handle *mh, const char *path);
843
851
868#endif
869
879MPG123_EXPORT int mpg123_open64(mpg123_handle *mh, const char *path);
880
894, int channels, int encoding);
895
908
917
923
936, void *outmemory, size_t outmemsize, size_t *done );
937
946, const unsigned char *in, size_t size );
947
968, const unsigned char *inmemory, size_t inmemsize
969, void *outmemory, size_t outmemsize, size_t *done );
970
971#ifndef MPG123_PORTABLE_API
981, off_t *num, unsigned char **audio, size_t *bytes );
982
993, off_t *num, unsigned char **audio, size_t *bytes );
994#endif /* un-portable API */
995
1005, int64_t *num, unsigned char **audio, size_t *bytes );
1006
1017, int64_t *num, unsigned char **audio, size_t *bytes );
1018
1026
1043, unsigned long *header, unsigned char **bodydata, size_t *bodybytes );
1044
1045#ifndef MPG123_PORTABLE_API
1054#endif
1055
1064
1116#ifndef MPG123_PORTABLE_API
1123#endif
1124
1131
1132#ifndef MPG123_PORTABLE_API
1138#endif
1139
1145
1146#ifndef MPG123_PORTABLE_API
1152#endif
1153
1159
1160
1161#ifndef MPG123_PORTABLE_API
1172, off_t sampleoff, int whence );
1173#endif
1174
1184, int64_t sampleoff, int whence );
1185
1186#ifndef MPG123_PORTABLE_API
1200, off_t sampleoff, int whence, off_t *input_offset );
1201#endif
1202
1215, int64_t sampleoff, int whence, int64_t *input_offset );
1216
1217#ifndef MPG123_PORTABLE_API
1227, off_t frameoff, int whence );
1228#endif
1229
1238, int64_t frameoff, int whence );
1239
1240#ifndef MPG123_PORTABLE_API
1245
1258, off_t **offsets, off_t *step, size_t *fill );
1259#endif
1260
1265
1276, int64_t **offsets, int64_t *step, size_t *fill );
1277
1278#ifndef MPG123_PORTABLE_API
1291, off_t *offsets, off_t step, size_t fill );
1292#endif
1293
1304, int64_t *offsets, int64_t step, size_t fill );
1305
1306
1307#ifndef MPG123_PORTABLE_API
1315MPG123_EXPORT int mpg123_position( mpg123_handle *mh, off_t INT123_frame_offset, off_t buffered_bytes, off_t *current_frame, off_t *frames_left, double *current_seconds, double *seconds_left);
1316#endif
1317
1333
1334#ifdef MPG123_ENUM_API
1348, enum mpg123_channels channel, int band, double val );
1349#endif
1350
1364, int channel, int band, double val );
1365
1376, int channel, int a, int b, double factor );
1377
1388, int channel, int a, int b, double db );
1389
1390#ifdef MPG123_ENUM_API
1402 , enum mpg123_channels channel, int band);
1403#endif
1404
1415MPG123_EXPORT double mpg123_geteq2(mpg123_handle *mh, int channel, int band);
1416
1422
1430
1437
1444
1455MPG123_EXPORT int mpg123_getvolume(mpg123_handle *mh, double *base, double *really, double *rva_db);
1456
1457/* TODO: Set some preamp in addition / to replace internal RVA handling? */
1458
1473
1480
1481
1490
1491
1499
1500#ifdef MPG123_ENUM_API
1516#endif
1517
1533
1540{
1541 double xr[2][2][576];
1542 double sfb[2][2][22];
1543 double sfb_s[2][2][3*13];
1544 int qss[2][2];
1545 int big_values[2][2];
1546 int sub_gain[2][2][3];
1547 int scalefac_scale[2][2];
1548 int preflag[2][2];
1549 int blocktype[2][2];
1550 int mixed[2][2];
1551 int mainbits[2][2];
1552 int sfbits[2][2];
1553 int scfsi[2];
1556};
1557
1558#ifdef MPG123_ENUM_API
1570#endif
1571
1583
1591, struct mpg123_moreinfo *mi );
1592
1598
1607
1608#ifndef MPG123_PORTABLE_API
1615
1629
1637#endif
1638
1645
1659
1667
1673
1679
1685
1686
1698
1699#ifdef MPG123_ENUM_API
1712, enum mpg123_state key, long *val, double *fval );
1713#endif
1714
1727, int key, long *val, double *fval );
1728
1742typedef struct
1743{
1744 char* p;
1745 size_t size;
1746 size_t fill;
1748
1753
1758
1765
1772
1779
1790
1798
1812
1819
1828, const char *stuff, size_t from, size_t count );
1829
1836
1845, const char *stuff, size_t from, size_t count );
1846
1856
1862
1871
1891
1901
1902#ifdef MPG123_ENUM_API
1912#endif
1913
1922MPG123_EXPORT int mpg123_enc_from_id3_2(unsigned char id3_enc_byte);
1923
1924#ifdef MPG123_ENUM_API
1938MPG123_EXPORT int mpg123_store_utf8(mpg123_string *sb, enum mpg123_text_encoding enc, const unsigned char *source, size_t source_size);
1939#endif
1940
1955, int enc, const unsigned char *source, size_t source_size);
1956
1963typedef struct
1964{
1965 char lang[3];
1966 char id[4];
1969} mpg123_text;
1970
1996
2001typedef struct
2002{
2003 char type;
2006 size_t size;
2007 unsigned char* data;
2009
2015typedef struct
2016{
2017 unsigned char version;
2024 /* Encountered ID3v2 fields are appended to these lists.
2025 There can be multiple occurences, the pointers above always point to the last encountered data. */
2027 size_t comments;
2029 size_t texts;
2031 size_t extras;
2034 size_t pictures;
2035} mpg123_id3v2;
2036
2041typedef struct
2042{
2043 char tag[3];
2044 char title[30];
2045 char artist[30];
2046 char album[30];
2047 char year[4];
2048 char comment[30];
2049 unsigned char genre;
2050} mpg123_id3v1;
2051
2052#define MPG123_ID3 0x3
2053#define MPG123_NEW_ID3 0x1
2054#define MPG123_ICY 0xc
2055#define MPG123_NEW_ICY 0x4
2062
2067
2073, mpg123_id3v1 **v1, mpg123_id3v2 **v2 );
2074
2089, unsigned char **v1, size_t *v1_size
2090, unsigned char **v2, size_t *v2_size );
2091
2097MPG123_EXPORT int mpg123_icy(mpg123_handle *mh, char **icy_meta);
2098
2103MPG123_EXPORT char* mpg123_icy2utf8(const char* icy_text);
2104
2105
2125struct mpg123_pars_struct;
2126
2128typedef struct mpg123_pars_struct mpg123_pars;
2129
2137, const char* decoder, int *error );
2138
2144
2149
2156
2163
2174, long rate, int channels, int encodings);
2175
2187, long rate, int channels, int encodings);
2188
2196MPG123_EXPORT int mpg123_fmt_support(mpg123_pars *mp, long rate, int encoding);
2197
2198#ifdef MPG123_ENUM_API
2211, enum mpg123_parms type, long value, double fvalue );
2212#endif
2213
2226, int type, long value, double fvalue );
2227
2228#ifdef MPG123_ENUM_API
2241, enum mpg123_parms type, long *value, double *fvalue );
2242#endif
2243
2256, int type, long *value, double *fvalue );
2257
2281, void *data, size_t size);
2282
2289
2290#ifndef MPG123_PORTABLE_API
2305, mpg123_ssize_t (*r_read) (int, void *, size_t)
2306, off_t (*r_lseek)(int, off_t, int)
2307);
2308
2324, mpg123_ssize_t (*r_read) (void *, void *, size_t)
2325, off_t (*r_lseek)(void *, off_t, int)
2326, void (*cleanup)(void*) );
2327#endif
2328
2348MPG123_EXPORT int mpg123_reader64( mpg123_handle *mh, int (*r_read) (void *, void *, size_t, size_t *), int64_t (*r_lseek)(void *, int64_t, int), void (*cleanup)(void*) );
2349
2352#ifdef __cplusplus
2353}
2354#endif
2355
2356#endif
MPG123_EXPORT int mpg123_getpar(mpg123_pars *mp, enum mpg123_parms type, long *value, double *fvalue)
struct mpg123_pars_struct mpg123_pars
Definition mpg123.h:2128
MPG123_EXPORT int mpg123_fmt2(mpg123_pars *mp, long rate, int channels, int encodings)
MPG123_EXPORT int mpg123_getpar2(mpg123_pars *mp, int type, long *value, double *fvalue)
MPG123_EXPORT mpg123_pars * mpg123_new_pars(int *error)
MPG123_EXPORT int mpg123_par2(mpg123_pars *mp, int type, long value, double fvalue)
MPG123_EXPORT mpg123_handle * mpg123_parnew(mpg123_pars *mp, const char *decoder, int *error)
MPG123_EXPORT int mpg123_fmt_support(mpg123_pars *mp, long rate, int encoding)
MPG123_EXPORT void mpg123_delete_pars(mpg123_pars *mp)
MPG123_EXPORT int mpg123_par(mpg123_pars *mp, enum mpg123_parms type, long value, double fvalue)
MPG123_EXPORT int mpg123_fmt_all(mpg123_pars *mp)
MPG123_EXPORT int mpg123_fmt_none(mpg123_pars *mp)
MPG123_EXPORT const char * mpg123_current_decoder(mpg123_handle *mh)
MPG123_EXPORT const char ** mpg123_decoders(void)
MPG123_EXPORT const char ** mpg123_supported_decoders(void)
MPG123_EXPORT int mpg123_decoder(mpg123_handle *mh, const char *decoder_name)
MPG123_EXPORT const char * mpg123_plain_strerror(int errcode)
MPG123_EXPORT const char * mpg123_strerror(mpg123_handle *mh)
MPG123_EXPORT int mpg123_errcode(mpg123_handle *mh)
mpg123_errors
Definition mpg123.h:528
@ MPG123_NEED_MORE
Definition mpg123.h:531
@ MPG123_LSEEK_FAILED
Definition mpg123.h:573
@ MPG123_BAD_PARAM
Definition mpg123.h:538
@ MPG123_ERR_16TO8TABLE
Definition mpg123.h:537
@ MPG123_BAD_CHANNEL
Definition mpg123.h:535
@ MPG123_NO_SEEK
Definition mpg123.h:556
@ MPG123_BAD_PARS
Definition mpg123.h:558
@ MPG123_INT_OVERFLOW
Definition mpg123.h:576
@ MPG123_BAD_HANDLE
Definition mpg123.h:543
@ MPG123_RESYNC_FAIL
Definition mpg123.h:561
@ MPG123_BAD_OUTFORMAT
Definition mpg123.h:534
@ MPG123_NO_TIMEOUT
Definition mpg123.h:554
@ MPG123_INDEX_FAIL
Definition mpg123.h:569
@ MPG123_BAD_BUFFER
Definition mpg123.h:539
@ MPG123_ERR
Definition mpg123.h:532
@ MPG123_NULL_POINTER
Definition mpg123.h:566
@ MPG123_BAD_RVA
Definition mpg123.h:545
@ MPG123_BAD_FILE
Definition mpg123.h:555
@ MPG123_ERR_READER
Definition mpg123.h:551
@ MPG123_NO_SEEK_FROM_END
Definition mpg123.h:552
@ MPG123_NOT_INITIALIZED
Definition mpg123.h:541
@ MPG123_OUT_OF_MEM
Definition mpg123.h:540
@ MPG123_NULL_BUFFER
Definition mpg123.h:564
@ MPG123_OUT_OF_SYNC
Definition mpg123.h:560
@ MPG123_NO_SPACE
Definition mpg123.h:547
@ MPG123_ERR_NULL
Definition mpg123.h:550
@ MPG123_BAD_TYPES
Definition mpg123.h:548
@ MPG123_LFS_OVERFLOW
Definition mpg123.h:575
@ MPG123_NEW_FORMAT
Definition mpg123.h:530
@ MPG123_BAD_KEY
Definition mpg123.h:567
@ MPG123_NO_READER
Definition mpg123.h:557
@ MPG123_BAD_CUSTOM_IO
Definition mpg123.h:574
@ MPG123_BAD_WHENCE
Definition mpg123.h:553
@ MPG123_BAD_ALIGN
Definition mpg123.h:563
@ MPG123_NO_BUFFERS
Definition mpg123.h:544
@ MPG123_NO_INDEX
Definition mpg123.h:568
@ MPG123_DONE
Definition mpg123.h:529
@ MPG123_BAD_DECODER_SETUP
Definition mpg123.h:570
@ MPG123_NO_RELSEEK
Definition mpg123.h:565
@ MPG123_NO_GAPLESS
Definition mpg123.h:546
@ MPG123_BAD_INDEX_PAR
Definition mpg123.h:559
@ MPG123_BAD_VALUE
Definition mpg123.h:572
@ MPG123_MISSING_FEATURE
Definition mpg123.h:571
@ MPG123_BAD_BAND
Definition mpg123.h:549
@ MPG123_OK
Definition mpg123.h:533
@ MPG123_BAD_FLOAT
Definition mpg123.h:577
@ MPG123_BAD_RATE
Definition mpg123.h:536
@ MPG123_BAD_DECODER
Definition mpg123.h:542
@ MPG123_NO_8BIT
Definition mpg123.h:562
#define MPG123_EXPORT
Definition mpg123.h:45
ssize_t mpg123_ssize_t
Definition mpg123.h:104
unsigned int mpg123_libversion(unsigned int *patch)
MPG123_EXPORT void mpg123_free(void *ptr)
mpg123_param_flags
Definition mpg123.h:315
MPG123_EXPORT void mpg123_delete(mpg123_handle *mh)
MPG123_EXPORT int mpg123_feature2(int key)
MPG123_EXPORT int mpg123_getparam(mpg123_handle *mh, enum mpg123_parms type, long *value, double *fvalue)
struct mpg123_handle_struct mpg123_handle
Definition mpg123.h:222
const char * mpg123_distversion(unsigned int *major, unsigned int *minor, unsigned int *patch)
mpg123_parms
Definition mpg123.h:285
mpg123_param_rva
Definition mpg123.h:380
mpg123_feature_set
Definition mpg123.h:449
MPG123_EXPORT int mpg123_getparam2(mpg123_handle *mh, int type, long *value, double *fvalue)
MPG123_EXPORT int mpg123_param2(mpg123_handle *mh, int type, long value, double fvalue)
MPG123_EXPORT void mpg123_exit(void)
MPG123_EXPORT int mpg123_param(mpg123_handle *mh, enum mpg123_parms type, long value, double fvalue)
MPG123_EXPORT int mpg123_init(void)
MPG123_EXPORT mpg123_handle * mpg123_new(const char *decoder, int *error)
MPG123_EXPORT int mpg123_feature(const enum mpg123_feature_set key)
@ MPG123_IGNORE_STREAMLENGTH
Definition mpg123.h:329
@ MPG123_FORCE_MONO
Definition mpg123.h:316
@ MPG123_FUZZY
Definition mpg123.h:326
@ MPG123_FORCE_FLOAT
Definition mpg123.h:327
@ MPG123_QUIET
Definition mpg123.h:322
@ MPG123_NO_RESYNC
Definition mpg123.h:324
@ MPG123_IGNORE_INFOFRAME
Definition mpg123.h:331
@ MPG123_MONO_LEFT
Definition mpg123.h:317
@ MPG123_FORCE_8BIT
Definition mpg123.h:321
@ MPG123_BIG_ENDIAN
Definition mpg123.h:352
@ MPG123_PICTURE
Definition mpg123.h:333
@ MPG123_SEEKBUFFER
Definition mpg123.h:325
@ MPG123_GAPLESS
Definition mpg123.h:323
@ MPG123_FORCE_STEREO
Definition mpg123.h:320
@ MPG123_NO_PEEK_END
Definition mpg123.h:334
@ MPG123_STORE_RAW_ID3
Definition mpg123.h:341
@ MPG123_MONO_RIGHT
Definition mpg123.h:318
@ MPG123_FORCE_SEEKABLE
Definition mpg123.h:340
@ MPG123_AUTO_RESAMPLE
Definition mpg123.h:332
@ MPG123_NO_READAHEAD
Definition mpg123.h:353
@ MPG123_PLAIN_ID3TEXT
Definition mpg123.h:328
@ MPG123_FORCE_ENDIAN
Definition mpg123.h:346
@ MPG123_FLOAT_FALLBACK
Definition mpg123.h:360
@ MPG123_MONO_MIX
Definition mpg123.h:319
@ MPG123_SKIP_ID3V2
Definition mpg123.h:330
@ MPG123_NO_FRANKENSTEIN
Definition mpg123.h:368
@ MPG123_VERBOSE
Definition mpg123.h:286
@ MPG123_UPSPEED
Definition mpg123.h:293
@ MPG123_TIMEOUT
Definition mpg123.h:299
@ MPG123_DOWNSPEED
Definition mpg123.h:292
@ MPG123_START_FRAME
Definition mpg123.h:294
@ MPG123_DOWN_SAMPLE
Definition mpg123.h:290
@ MPG123_RESYNC_LIMIT
Definition mpg123.h:301
@ MPG123_INDEX_SIZE
Definition mpg123.h:302
@ MPG123_ADD_FLAGS
Definition mpg123.h:288
@ MPG123_OUTSCALE
Definition mpg123.h:298
@ MPG123_FREEFORMAT_SIZE
Definition mpg123.h:306
@ MPG123_ICY_INTERVAL
Definition mpg123.h:296
@ MPG123_FEEDPOOL
Definition mpg123.h:304
@ MPG123_FEEDBUFFER
Definition mpg123.h:305
@ MPG123_REMOVE_FLAGS
Definition mpg123.h:300
@ MPG123_FLAGS
Definition mpg123.h:287
@ MPG123_FORCE_RATE
Definition mpg123.h:289
@ MPG123_DECODE_FRAMES
Definition mpg123.h:295
@ MPG123_PREFRAMES
Definition mpg123.h:303
@ MPG123_RVA
Definition mpg123.h:291
@ MPG123_RVA_MIX
Definition mpg123.h:382
@ MPG123_RVA_ALBUM
Definition mpg123.h:383
@ MPG123_RVA_MAX
Definition mpg123.h:384
@ MPG123_RVA_OFF
Definition mpg123.h:381
@ MPG123_FEATURE_INDEX
Definition mpg123.h:454
@ MPG123_FEATURE_TIMEOUT_READ
Definition mpg123.h:463
@ MPG123_FEATURE_DECODE_LAYER3
Definition mpg123.h:458
@ MPG123_FEATURE_DECODE_NTOM
Definition mpg123.h:461
@ MPG123_FEATURE_EQUALIZER
Definition mpg123.h:464
@ MPG123_FEATURE_MOREINFO
Definition mpg123.h:465
@ MPG123_FEATURE_PARSE_ID3V2
Definition mpg123.h:455
@ MPG123_FEATURE_PARSE_ICY
Definition mpg123.h:462
@ MPG123_FEATURE_OUTPUT_FLOAT32
Definition mpg123.h:466
@ MPG123_FEATURE_OUTPUT_32BIT
Definition mpg123.h:453
@ MPG123_FEATURE_OUTPUT_FLOAT64
Definition mpg123.h:467
@ MPG123_FEATURE_OUTPUT_8BIT
Definition mpg123.h:451
@ MPG123_FEATURE_ABI_UTF8OPEN
Definition mpg123.h:450
@ MPG123_FEATURE_DECODE_ACCURATE
Definition mpg123.h:459
@ MPG123_FEATURE_DECODE_DOWNSAMPLE
Definition mpg123.h:460
@ MPG123_FEATURE_DECODE_LAYER2
Definition mpg123.h:457
@ MPG123_FEATURE_OUTPUT_16BIT
Definition mpg123.h:452
@ MPG123_FEATURE_DECODE_LAYER1
Definition mpg123.h:456
MPG123_EXPORT int mpg123_open64(mpg123_handle *mh, const char *path)
MPG123_EXPORT int mpg123_open_feed(mpg123_handle *mh)
MPG123_EXPORT int mpg123_feed(mpg123_handle *mh, const unsigned char *in, size_t size)
MPG123_EXPORT int mpg123_close(mpg123_handle *mh)
MPG123_EXPORT int mpg123_decode(mpg123_handle *mh, const unsigned char *inmemory, size_t inmemsize, void *outmemory, size_t outmemsize, size_t *done)
MPG123_EXPORT int mpg123_open_fixed64(mpg123_handle *mh, const char *path, int channels, int encoding)
MPG123_EXPORT int mpg123_framebyframe_decode64(mpg123_handle *mh, int64_t *num, unsigned char **audio, size_t *bytes)
MPG123_EXPORT int mpg123_decode_frame64(mpg123_handle *mh, int64_t *num, unsigned char **audio, size_t *bytes)
MPG123_EXPORT int mpg123_open(mpg123_handle *mh, const char *path)
MPG123_EXPORT int mpg123_open_fd(mpg123_handle *mh, int fd)
MPG123_EXPORT int mpg123_open_fixed(mpg123_handle *mh, const char *path, int channels, int encoding)
MPG123_EXPORT int mpg123_open_handle64(mpg123_handle *mh, void *iohandle)
MPG123_EXPORT int mpg123_framedata(mpg123_handle *mh, unsigned long *header, unsigned char **bodydata, size_t *bodybytes)
MPG123_EXPORT int mpg123_open_handle(mpg123_handle *mh, void *iohandle)
MPG123_EXPORT int mpg123_decode_frame(mpg123_handle *mh, off_t *num, unsigned char **audio, size_t *bytes)
MPG123_EXPORT int mpg123_read(mpg123_handle *mh, void *outmemory, size_t outmemsize, size_t *done)
MPG123_EXPORT int mpg123_framebyframe_next(mpg123_handle *mh)
MPG123_EXPORT int mpg123_framebyframe_decode(mpg123_handle *mh, off_t *num, unsigned char **audio, size_t *bytes)
MPG123_EXPORT int64_t mpg123_framepos64(mpg123_handle *mh)
MPG123_EXPORT off_t mpg123_framepos(mpg123_handle *mh)
MPG123_EXPORT size_t mpg123_outblock(mpg123_handle *mh)
MPG123_EXPORT int mpg123_replace_reader_handle(mpg123_handle *mh, mpg123_ssize_t(*r_read)(void *, void *, size_t), off_t(*r_lseek)(void *, off_t, int), void(*cleanup)(void *))
MPG123_EXPORT int mpg123_reader64(mpg123_handle *mh, int(*r_read)(void *, void *, size_t, size_t *), int64_t(*r_lseek)(void *, int64_t, int), void(*cleanup)(void *))
MPG123_EXPORT int mpg123_replace_reader(mpg123_handle *mh, mpg123_ssize_t(*r_read)(int, void *, size_t), off_t(*r_lseek)(int, off_t, int))
MPG123_EXPORT int mpg123_replace_buffer(mpg123_handle *mh, void *data, size_t size)
MPG123_EXPORT int mpg123_same_string(mpg123_string *a, mpg123_string *b)
MPG123_EXPORT int mpg123_grow_string(mpg123_string *sb, size_t news)
MPG123_EXPORT int mpg123_meta_check(mpg123_handle *mh)
MPG123_EXPORT void mpg123_free_string(mpg123_string *sb)
MPG123_EXPORT int mpg123_set_substring(mpg123_string *sb, const char *stuff, size_t from, size_t count)
MPG123_EXPORT int mpg123_store_utf8_2(mpg123_string *sb, int enc, const unsigned char *source, size_t source_size)
mpg123_text_encoding
Definition mpg123.h:1874
MPG123_EXPORT void mpg123_meta_free(mpg123_handle *mh)
MPG123_EXPORT size_t mpg123_strlen(mpg123_string *sb, int utf8)
MPG123_EXPORT int mpg123_resize_string(mpg123_string *sb, size_t news)
MPG123_EXPORT int mpg123_store_utf8(mpg123_string *sb, enum mpg123_text_encoding enc, const unsigned char *source, size_t source_size)
MPG123_EXPORT mpg123_string * mpg123_new_string(const char *val)
MPG123_EXPORT int mpg123_icy(mpg123_handle *mh, char **icy_meta)
mpg123_id3_enc
Definition mpg123.h:1894
MPG123_EXPORT int mpg123_add_substring(mpg123_string *sb, const char *stuff, size_t from, size_t count)
MPG123_EXPORT int mpg123_id3(mpg123_handle *mh, mpg123_id3v1 **v1, mpg123_id3v2 **v2)
MPG123_EXPORT int mpg123_set_string(mpg123_string *sb, const char *stuff)
MPG123_EXPORT int mpg123_copy_string(mpg123_string *from, mpg123_string *to)
MPG123_EXPORT char * mpg123_icy2utf8(const char *icy_text)
MPG123_EXPORT int mpg123_add_string(mpg123_string *sb, const char *stuff)
MPG123_EXPORT enum mpg123_text_encoding mpg123_enc_from_id3(unsigned char id3_enc_byte)
MPG123_EXPORT int mpg123_enc_from_id3_2(unsigned char id3_enc_byte)
MPG123_EXPORT void mpg123_delete_string(mpg123_string *sb)
MPG123_EXPORT int mpg123_chomp_string(mpg123_string *sb)
MPG123_EXPORT void mpg123_init_string(mpg123_string *sb)
mpg123_id3_pic_type
Definition mpg123.h:1973
MPG123_EXPORT int mpg123_id3_raw(mpg123_handle *mh, unsigned char **v1, size_t *v1_size, unsigned char **v2, size_t *v2_size)
MPG123_EXPORT int mpg123_move_string(mpg123_string *from, mpg123_string *to)
@ mpg123_text_cp1252
Definition mpg123.h:1879
@ mpg123_text_max
Definition mpg123.h:1889
@ mpg123_text_utf16bom
Definition mpg123.h:1884
@ mpg123_text_utf16be
Definition mpg123.h:1885
@ mpg123_text_unknown
Definition mpg123.h:1875
@ mpg123_text_icy
Definition mpg123.h:1878
@ mpg123_text_utf16
Definition mpg123.h:1880
@ mpg123_text_utf8
Definition mpg123.h:1876
@ mpg123_text_latin1
Definition mpg123.h:1877
@ mpg123_id3_latin1
Definition mpg123.h:1895
@ mpg123_id3_utf16be
Definition mpg123.h:1897
@ mpg123_id3_enc_max
Definition mpg123.h:1899
@ mpg123_id3_utf16bom
Definition mpg123.h:1896
@ mpg123_id3_utf8
Definition mpg123.h:1898
@ mpg123_id3_pic_publisher_logo
Definition mpg123.h:1994
@ mpg123_id3_pic_performance
Definition mpg123.h:1989
@ mpg123_id3_pic_leaflet
Definition mpg123.h:1979
@ mpg123_id3_pic_recording
Definition mpg123.h:1988
@ mpg123_id3_pic_back_cover
Definition mpg123.h:1978
@ mpg123_id3_pic_video
Definition mpg123.h:1990
@ mpg123_id3_pic_conductor
Definition mpg123.h:1983
@ mpg123_id3_pic_media
Definition mpg123.h:1980
@ mpg123_id3_pic_lead
Definition mpg123.h:1981
@ mpg123_id3_pic_artist
Definition mpg123.h:1982
@ mpg123_id3_pic_artist_logo
Definition mpg123.h:1993
@ mpg123_id3_pic_orchestra
Definition mpg123.h:1984
@ mpg123_id3_pic_icon
Definition mpg123.h:1975
@ mpg123_id3_pic_composer
Definition mpg123.h:1985
@ mpg123_id3_pic_other
Definition mpg123.h:1974
@ mpg123_id3_pic_location
Definition mpg123.h:1987
@ mpg123_id3_pic_illustration
Definition mpg123.h:1992
@ mpg123_id3_pic_front_cover
Definition mpg123.h:1977
@ mpg123_id3_pic_lyricist
Definition mpg123.h:1986
@ mpg123_id3_pic_fish
Definition mpg123.h:1991
@ mpg123_id3_pic_other_icon
Definition mpg123.h:1976
MPG123_EXPORT int mpg123_format2(mpg123_handle *mh, long rate, int channels, int encodings)
MPG123_EXPORT int mpg123_format_all(mpg123_handle *mh)
MPG123_EXPORT int mpg123_format_none(mpg123_handle *mh)
mpg123_channelcount
Definition mpg123.h:671
MPG123_EXPORT void mpg123_encodings(const int **list, size_t *number)
MPG123_EXPORT void mpg123_rates(const long **list, size_t *number)
MPG123_EXPORT int mpg123_format(mpg123_handle *mh, long rate, int channels, int encodings)
MPG123_EXPORT int mpg123_getformat2(mpg123_handle *mh, long *rate, int *channels, int *encoding, int clear_flag)
MPG123_EXPORT int mpg123_format_support(mpg123_handle *mh, long rate, int encoding)
MPG123_EXPORT int mpg123_getformat(mpg123_handle *mh, long *rate, int *channels, int *encoding)
MPG123_EXPORT int mpg123_encsize(int encoding)
@ MPG123_STEREO
Definition mpg123.h:673
@ MPG123_MONO
Definition mpg123.h:672
MPG123_EXPORT int mpg123_set_index(mpg123_handle *mh, off_t *offsets, off_t step, size_t fill)
MPG123_EXPORT int mpg123_index64(mpg123_handle *mh, int64_t **offsets, int64_t *step, size_t *fill)
MPG123_EXPORT int64_t mpg123_tell64(mpg123_handle *mh)
MPG123_EXPORT off_t mpg123_tell_stream(mpg123_handle *mh)
MPG123_EXPORT int64_t mpg123_tell_stream64(mpg123_handle *mh)
MPG123_EXPORT int64_t mpg123_seek_frame64(mpg123_handle *mh, int64_t frameoff, int whence)
MPG123_EXPORT int64_t mpg123_tellframe64(mpg123_handle *mh)
MPG123_EXPORT int mpg123_set_index64(mpg123_handle *mh, int64_t *offsets, int64_t step, size_t fill)
MPG123_EXPORT off_t mpg123_tellframe(mpg123_handle *mh)
MPG123_EXPORT off_t mpg123_tell(mpg123_handle *mh)
MPG123_EXPORT off_t mpg123_feedseek(mpg123_handle *mh, off_t sampleoff, int whence, off_t *input_offset)
MPG123_EXPORT off_t mpg123_timeframe(mpg123_handle *mh, double sec)
MPG123_EXPORT int64_t mpg123_feedseek64(mpg123_handle *mh, int64_t sampleoff, int whence, int64_t *input_offset)
MPG123_EXPORT off_t mpg123_seek(mpg123_handle *mh, off_t sampleoff, int whence)
MPG123_EXPORT int mpg123_position(mpg123_handle *mh, off_t INT123_frame_offset, off_t buffered_bytes, off_t *current_frame, off_t *frames_left, double *current_seconds, double *seconds_left)
MPG123_EXPORT off_t mpg123_seek_frame(mpg123_handle *mh, off_t frameoff, int whence)
MPG123_EXPORT int mpg123_index(mpg123_handle *mh, off_t **offsets, off_t *step, size_t *fill)
MPG123_EXPORT int64_t mpg123_seek64(mpg123_handle *mh, int64_t sampleoff, int whence)
MPG123_EXPORT int64_t mpg123_timeframe64(mpg123_handle *mh, double sec)
mpg123_mode
Definition mpg123.h:1484
mpg123_version
Definition mpg123.h:1475
MPG123_EXPORT int mpg123_set_filesize64(mpg123_handle *mh, int64_t size)
MPG123_EXPORT int mpg123_scan(mpg123_handle *mh)
MPG123_EXPORT int mpg123_info(mpg123_handle *mh, struct mpg123_frameinfo *mi)
MPG123_EXPORT int64_t mpg123_framelength64(mpg123_handle *mh)
MPG123_EXPORT int mpg123_spf(mpg123_handle *mh)
MPG123_EXPORT int mpg123_getstate2(mpg123_handle *mh, int key, long *val, double *fval)
MPG123_EXPORT double mpg123_tpf(mpg123_handle *mh)
MPG123_EXPORT off_t mpg123_length(mpg123_handle *mh)
mpg123_vbr
Definition mpg123.h:1468
MPG123_EXPORT int mpg123_info2(mpg123_handle *mh, struct mpg123_frameinfo2 *mi)
MPG123_EXPORT off_t mpg123_framelength(mpg123_handle *mh)
MPG123_EXPORT int mpg123_set_moreinfo(mpg123_handle *mh, struct mpg123_moreinfo *mi)
MPG123_EXPORT int mpg123_set_filesize(mpg123_handle *mh, off_t size)
MPG123_EXPORT long mpg123_clip(mpg123_handle *mh)
mpg123_state
Definition mpg123.h:1689
mpg123_flags
Definition mpg123.h:1493
MPG123_EXPORT int64_t mpg123_length64(mpg123_handle *mh)
MPG123_EXPORT int mpg123_getstate(mpg123_handle *mh, enum mpg123_state key, long *val, double *fval)
MPG123_EXPORT size_t mpg123_safe_buffer(void)
@ MPG123_M_MONO
Definition mpg123.h:1488
@ MPG123_M_DUAL
Definition mpg123.h:1487
@ MPG123_M_JOINT
Definition mpg123.h:1486
@ MPG123_M_STEREO
Definition mpg123.h:1485
@ MPG123_2_0
Definition mpg123.h:1477
@ MPG123_1_0
Definition mpg123.h:1476
@ MPG123_2_5
Definition mpg123.h:1478
@ MPG123_CBR
Definition mpg123.h:1469
@ MPG123_ABR
Definition mpg123.h:1471
@ MPG123_VBR
Definition mpg123.h:1470
@ MPG123_ACCURATE
Definition mpg123.h:1690
@ MPG123_BUFFERFILL
Definition mpg123.h:1691
@ MPG123_DEC_DELAY
Definition mpg123.h:1696
@ MPG123_ENC_DELAY
Definition mpg123.h:1694
@ MPG123_FRANKENSTEIN
Definition mpg123.h:1692
@ MPG123_ENC_PADDING
Definition mpg123.h:1695
@ MPG123_FRESH_DECODER
Definition mpg123.h:1693
@ MPG123_PRIVATE
Definition mpg123.h:1496
@ MPG123_COPYRIGHT
Definition mpg123.h:1495
@ MPG123_CRC
Definition mpg123.h:1494
@ MPG123_ORIGINAL
Definition mpg123.h:1497
MPG123_EXPORT int mpg123_getvolume(mpg123_handle *mh, double *base, double *really, double *rva_db)
MPG123_EXPORT int mpg123_reset_eq(mpg123_handle *mh)
MPG123_EXPORT double mpg123_geteq2(mpg123_handle *mh, int channel, int band)
MPG123_EXPORT int mpg123_eq2(mpg123_handle *mh, int channel, int band, double val)
MPG123_EXPORT int mpg123_volume_change(mpg123_handle *mh, double change)
MPG123_EXPORT int mpg123_eq_change(mpg123_handle *mh, int channel, int a, int b, double db)
MPG123_EXPORT int mpg123_volume_change_db(mpg123_handle *mh, double db)
MPG123_EXPORT int mpg123_eq_bands(mpg123_handle *mh, int channel, int a, int b, double factor)
MPG123_EXPORT double mpg123_geteq(mpg123_handle *mh, enum mpg123_channels channel, int band)
MPG123_EXPORT int mpg123_volume(mpg123_handle *mh, double vol)
MPG123_EXPORT int mpg123_eq(mpg123_handle *mh, enum mpg123_channels channel, int band, double val)
mpg123_channels
Definition mpg123.h:1328
@ MPG123_LEFT
Definition mpg123.h:1329
@ MPG123_RIGHT
Definition mpg123.h:1330
@ MPG123_LR
Definition mpg123.h:1331
void cleanup(mpg123_handle *mh, out123_handle *ao)
enum mpg123_mode mode
Definition mpg123.h:1507
enum mpg123_vbr vbr
Definition mpg123.h:1514
enum mpg123_flags flags
Definition mpg123.h:1510
enum mpg123_version version
Definition mpg123.h:1504
unsigned char genre
Definition mpg123.h:2049
mpg123_string * genre
Definition mpg123.h:2022
size_t texts
Definition mpg123.h:2029
mpg123_string * title
Definition mpg123.h:2018
mpg123_text * text
Definition mpg123.h:2028
mpg123_string * comment
Definition mpg123.h:2023
mpg123_string * artist
Definition mpg123.h:2019
mpg123_string * year
Definition mpg123.h:2021
size_t comments
Definition mpg123.h:2027
unsigned char version
Definition mpg123.h:2017
mpg123_text * comment_list
Definition mpg123.h:2026
size_t pictures
Definition mpg123.h:2034
mpg123_picture * picture
Definition mpg123.h:2032
mpg123_string * album
Definition mpg123.h:2020
mpg123_text * extra
Definition mpg123.h:2030
size_t extras
Definition mpg123.h:2031
int mainbits[2][2]
Definition mpg123.h:1551
int preflag[2][2]
Definition mpg123.h:1548
int scalefac_scale[2][2]
Definition mpg123.h:1547
int mixed[2][2]
Definition mpg123.h:1550
int sub_gain[2][2][3]
Definition mpg123.h:1546
int sfbits[2][2]
Definition mpg123.h:1552
int big_values[2][2]
Definition mpg123.h:1545
int qss[2][2]
Definition mpg123.h:1544
int blocktype[2][2]
Definition mpg123.h:1549
double sfb_s[2][2][3 *13]
Definition mpg123.h:1543
double xr[2][2][576]
Definition mpg123.h:1541
double sfb[2][2][22]
Definition mpg123.h:1542
mpg123_string description
Definition mpg123.h:2004
unsigned char * data
Definition mpg123.h:2007
mpg123_string mime_type
Definition mpg123.h:2005
size_t size
Definition mpg123.h:2006
size_t fill
Definition mpg123.h:1746
size_t size
Definition mpg123.h:1745
mpg123_string text
Definition mpg123.h:1968
mpg123_string description
Definition mpg123.h:1967
Hopefully valid HTML! Valid CSS!