#include "config.h"
#include "mpg123.h"
Go to the source code of this file.
|
void | bc_prepare (struct bufferchain *, size_t pool_size, size_t bufblock) |
|
void | bc_cleanup (struct bufferchain *) |
|
void | bc_poolsize (struct bufferchain *, size_t pool_size, size_t bufblock) |
|
size_t | bc_fill (struct bufferchain *bc) |
|
int | open_stream (mpg123_handle *, const char *path, int fd) |
|
int | open_stream_handle (mpg123_handle *, void *iohandle) |
|
int | open_feed (mpg123_handle *) |
|
int | feed_more (mpg123_handle *fr, const unsigned char *in, long count) |
|
void | feed_forget (mpg123_handle *fr) |
|
off_t | feed_set_pos (mpg123_handle *fr, off_t pos) |
|
void | open_bad (mpg123_handle *) |
|
◆ READER_BUF_ICY_STREAM
#define READER_BUF_ICY_STREAM 4 |
◆ READER_BUF_STREAM
◆ READER_BUFFERED
◆ READER_ERROR
◆ READER_FD_OPENED
◆ READER_FEED
◆ READER_HANDLEIO
◆ READER_ICY_STREAM
◆ READER_ID3TAG
◆ READER_MORE
◆ READER_NONBLOCK
◆ READER_SEEKABLE
◆ READER_STREAM
◆ READERS
◆ bc_cleanup()
Definition at line 527 of file readers.c.
528{
532}
static void buffy_del_chain(struct buffy *buf)
◆ bc_fill()
Definition at line 516 of file readers.c.
517{
518 return (
size_t)(
bc->size -
bc->pos);
519}
◆ bc_poolsize()
Definition at line 521 of file readers.c.
522{
523 bc->pool_size = pool_size;
524 bc->bufblock = bufblock;
525}
◆ bc_prepare()
Definition at line 508 of file readers.c.
509{
514}
static void bc_init(struct bufferchain *bc)
◆ feed_forget()
◆ feed_more()
Definition at line 772 of file readers.c.
773{
777 {
780 }
781 else
782
784 (
unsigned long)fr->
rdat.buffer.last->size, (
unsigned long)fr->
rdat.buffer.size);
786}
GLuint GLuint GLsizei count
static int bc_add(struct bufferchain *bc, const unsigned char *data, ssize_t size)
#define debug3(s, a, b, c)
◆ feed_set_pos()
Definition at line 822 of file readers.c.
823{
826 {
829 return bc->fileoff+
bc->size;
830 }
831 else
832 {
837 }
838}
static void bc_reset(struct bufferchain *bc)
◆ open_bad()
Definition at line 1123 of file readers.c.
1124{
1126#ifndef NO_ICY
1128#endif
1131#ifndef NO_FEEDER
1133#endif
1134 mh->
rdat.filelen = -1;
1135}
static struct reader bad_reader
◆ open_feed()
Definition at line 1137 of file readers.c.
1138{
1139 debug(
"feed reader");
1140#ifdef NO_FEEDER
1142 error(
"Buffered readers not supported in this build.");
1144 return -1;
1145#else
1146#ifndef NO_ICY
1147 if(fr->
p.icy_interval > 0)
1148 {
1149 if(
NOQUIET)
error(
"Feed reader cannot do ICY parsing!");
1150
1151 return -1;
1152 }
1154#endif
1157 if(fr->
rd->init(fr) < 0)
return -1;
1158
1159 debug(
"feed reader init successful");
1160 return 0;
1161#endif
1162}
static struct reader readers[]
struct mpg123_pars_struct p
◆ open_stream()
Definition at line 1187 of file readers.c.
1188{
1189 int filept_opened = 1;
1190 int filept;
1191
1193
1194 if(!bs_filenam)
1195 {
1197 filept_opened = 0;
1198 }
1199 #ifndef O_BINARY
1200 #define O_BINARY (0)
1201 #endif
1203 {
1207 }
1208
1209
1210 fr->
rdat.filelen = -1;
1211 fr->
rdat.filept = filept;
1214
1216}
const char * strerror(int err)
static int open_finish(mpg123_handle *fr)
◆ open_stream_handle()
Definition at line 1218 of file readers.c.
1219{
1221 fr->
rdat.filelen = -1;
1222 fr->
rdat.filept = -1;
1223 fr->
rdat.iohandle = iohandle;
1226
1228}