mod_musicindex  1.4.1
playlist-mp3.h File Reference
#include "mod_musicindex.h"

Go to the source code of this file.


mu_entmake_mp3_entry (request_rec *r, apr_pool_t *pool, FILE *const in, const char *const filename)
 Fills in the information fields about MP3 data.

Function Documentation

mu_ent* make_mp3_entry ( request_rec *  r,
apr_pool_t pool,
FILE *const  in,
const char *const  filename 

Fills in the information fields about MP3 data.

This function reads the id3 tags (using libid3tag0) from the MP3 file in and fills in the struct mu_ent fields accordingly.

inMP3 file to parse (closed on normal exit)
filenamecurrent filename
rApache request_rec struct to handle log writings (debugging)
Some VBR files are reported as "bitrate: 0".
When possible, struct mu_ent correctly set up, file stream closed.

Definition at line 252 of file playlist-mp3.c.

References mu_ent::album, apr_pstrdup, mu_ent::artist, mu_ent::bitrate, xing::bytes, mu_ent::date, DO_FAST_CALC, EF_VBR, mu_ent::filetype, mu_ent::flags, xing::frames, mu_ent::freq, FT_MP3, mu_ent::genre, INPUT_BUFFER_SIZE, mu_ent::length, MAD_AVERAGE_FRAMES, MI_QUICKPL, mi_rdebug, mpg123_mp3_ext_check(), mu_ent::mtime, musicindex_module, NEW_ENT, mu_config::options, mu_ent::posn, mu_ent::size, mu_ent::title, mu_ent::track, utf8_id3tag_findframe(), and xing_parse().