Marsyas
0.6.0-alpha
|
MP3FileSource read mp3 files using libmad. More...
#include <MP3FileSource.h>
Inherits AbsSoundFileSource.
Public Member Functions | |
MarSystem * | clone () const |
void | getHeader (std::string filename) |
MP3FileSource (std::string name) | |
MP3FileSource (const MP3FileSource &a) | |
void | myProcess (realvec &in, realvec &out) |
~MP3FileSource () |
MP3FileSource read mp3 files using libmad.
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.
MP3FileSource | ( | std::string | name | ) |
Definition at line 30 of file MP3FileSource.cpp.
MP3FileSource | ( | const MP3FileSource & | a | ) |
Definition at line 75 of file MP3FileSource.cpp.
~MP3FileSource | ( | ) |
Definition at line 69 of file MP3FileSource.cpp.
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.
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.