Marsyas  0.5.0-beta1
Public Member Functions
MP3FileSource Class Reference

MP3FileSource read mp3 files using libmad. More...

#include <MP3FileSource.h>

Inherits AbsSoundFileSource.

Public Member Functions

MarSystemclone () const
void getHeader (std::string filename)
 MP3FileSource (std::string name)
 MP3FileSource (const MP3FileSource &a)
void myProcess (realvec &in, realvec &out)
 ~MP3FileSource ()

Detailed Description

MP3FileSource read mp3 files using libmad.

Author:
Stuart Bray

This class reads an mp3 file using the mad mp3 decoder library. Some of this code was inspired from Bertrand Petit's madlld example. The code to resize the buffers was borrowed from Marsyas AudioSource.

Definition at line 52 of file MP3FileSource.h.


Constructor & Destructor Documentation

MP3FileSource ( std::string  name)

Definition at line 30 of file MP3FileSource.cpp.

MP3FileSource ( const MP3FileSource a)

Definition at line 75 of file MP3FileSource.cpp.

Definition at line 69 of file MP3FileSource.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 115 of file MP3FileSource.cpp.

void getHeader ( std::string  filename) [virtual]

Function: getHeader Description: Opens the MP3 file and collects all the necessary information to update the MarSystem.

Implements AbsSoundFileSource.

Definition at line 258 of file MP3FileSource.cpp.

void myProcess ( realvec in,
realvec out 
) [virtual]

Function: process Description: Fills an output vector with samples. In this case, getLinear16 does all the work.

Implements AbsSoundFileSource.

Definition at line 651 of file MP3FileSource.cpp.


The documentation for this class was generated from the following files: