audio_format_mp3.c File Reference

MP3 decompression routines. More...

#include "stdinc.h"
#include <mad.h>
#include <id3tag.h>
#include "audio_file.h"
#include "audio_format.h"
#include "audio_output.h"
Include dependency graph for audio_format_mp3.c:

Go to the source code of this file.

Data Structures

struct  mp3_drv_data
 Private MP3 data stored in the audio file structure. More...

Functions

static int mp3_match (FILE *fp, const char *ext)
 Test if an opened file is an MP3 file.
static void mp3_readtags (struct audio_file *fd)
 Read the ID3 tag from an MP3 file.
static size_t mp3_fill_buffer (struct audio_file *fd)
 Refill the databuffer when it's drained, copying the last partial frame to the beginning.
static int mp3_read_frame (struct audio_file *fd)
 Try to decode a frame, refilling the buffer if needed.
static int16_t mp3_fixed_to_short (mad_fixed_t fixed)
 Convert a fixed point sample to a short.
static void mp3_rewind (struct audio_file *fd)
 Rewind the current audio file handle to the beginning.
static void mp3_calc_length (struct audio_file *fd)
 Calculate the length of the current audio file.
int mp3_open (struct audio_file *fd, const char *ext)
 Open an mp3 file.
void mp3_close (struct audio_file *fd)
 Close and clean up the mp3 file.
size_t mp3_read (struct audio_file *fd, int16_t *buf, size_t len)
 Read data from the mp3 file and place it in buf.
void mp3_seek (struct audio_file *fd, int len, int rel)
 Seek the mp3 file a relatime amount of seconds.

Detailed Description

MP3 decompression routines.

Definition in file audio_format_mp3.c.

 All Data Structures Files Functions Variables Defines
Generated on Mon Mar 15 04:45:04 2010 for herrie by  doxygen 1.6.3