Mixxx

Mixxx::SoundSource Class Reference

#include <soundsource.h>

Inheritance diagram for Mixxx::SoundSource:

List of all members.

Public Member Functions

 SoundSource (QString qFilename)
virtual ~SoundSource ()
virtual int open ()=0
virtual long seek (long)=0
virtual unsigned read (unsigned long size, const SAMPLE *)=0
virtual long unsigned length ()=0
virtual int parseHeader ()=0
virtual QList< long > * getCuePoints ()
virtual QString getFilename ()
virtual QString getArtist ()
virtual QString getTitle ()
virtual QString getAlbum ()
virtual QString getType ()
virtual QString getComment ()
virtual QString getYear ()
virtual QString getGenre ()
virtual QString getTrackNumber ()
virtual float getReplayGain ()
virtual QString getKey ()
virtual float getBPM ()
virtual int getDuration ()
virtual int getBitrate ()
virtual unsigned int getSampleRate ()
virtual int getChannels ()
virtual void setArtist (QString)
virtual void setTitle (QString)
virtual void setAlbum (QString)
virtual void setType (QString)
virtual void setComment (QString)
virtual void setYear (QString)
virtual void setGenre (QString)
virtual void setTrackNumber (QString)
virtual void setReplayGain (float)
virtual void setKey (QString)
virtual void setBPM (float)
virtual void setDuration (int)
virtual void setBitrate (int)
virtual void setSampleRate (unsigned int)
virtual void setChannels (int)

Static Public Member Functions

static float str2bpm (QString sBpm)

Protected Member Functions

bool processTaglibFile (TagLib::File &f)
bool processID3v2Tag (TagLib::ID3v2::Tag *id3v2)
bool processAPETag (TagLib::APE::Tag *ape)
bool processXiphComment (TagLib::Ogg::XiphComment *xiph)
bool processMP4Tag (TagLib::MP4::Tag *mp4)
void processBpmString (QString tagName, QString sBpm)
void parseReplayGainString (QString sReplayGain)

Protected Attributes

QString m_qFilename
QString m_sArtist
QString m_sTitle
QString m_sAlbum
QString m_sType
QString m_sComment
QString m_sYear
QString m_sGenre
QString m_sTrackNumber
float m_fReplayGain
QString m_sKey
float m_fBPM
int m_iDuration
int m_iBitrate
unsigned int m_iSampleRate
int m_iChannels

Static Protected Attributes

static const bool s_bDebugMetadata = false

Detailed Description

Definition at line 53 of file soundsource.h.


Constructor & Destructor Documentation

Mixxx::SoundSource::SoundSource ( QString  qFilename)

Definition at line 51 of file soundsource.cpp.

Here is the caller graph for this function:

Mixxx::SoundSource::~SoundSource ( ) [virtual]

Definition at line 63 of file soundsource.cpp.


Member Function Documentation

QString Mixxx::SoundSource::getAlbum ( ) [virtual]

Definition at line 93 of file soundsource.cpp.

QString Mixxx::SoundSource::getArtist ( ) [virtual]

Return artist name

Definition at line 85 of file soundsource.cpp.

int Mixxx::SoundSource::getBitrate ( ) [virtual]

Definition at line 129 of file soundsource.cpp.

float Mixxx::SoundSource::getBPM ( ) [virtual]

Definition at line 121 of file soundsource.cpp.

int Mixxx::SoundSource::getChannels ( ) [virtual]

Definition at line 137 of file soundsource.cpp.

QString Mixxx::SoundSource::getComment ( ) [virtual]

Definition at line 101 of file soundsource.cpp.

QList< long > * Mixxx::SoundSource::getCuePoints ( ) [virtual]

Return a list of cue points stored in the file

Definition at line 68 of file soundsource.cpp.

int Mixxx::SoundSource::getDuration ( ) [virtual]

Definition at line 125 of file soundsource.cpp.

Here is the caller graph for this function:

QString Mixxx::SoundSource::getFilename ( ) [virtual]

Returns filename

Reimplemented in SoundSourceProxy.

Definition at line 73 of file soundsource.cpp.

Here is the caller graph for this function:

QString Mixxx::SoundSource::getGenre ( ) [virtual]

Definition at line 109 of file soundsource.cpp.

QString Mixxx::SoundSource::getKey ( ) [virtual]

Definition at line 198 of file soundsource.cpp.

Here is the caller graph for this function:

float Mixxx::SoundSource::getReplayGain ( ) [virtual]

Definition at line 117 of file soundsource.cpp.

unsigned int Mixxx::SoundSource::getSampleRate ( ) [virtual]

Reimplemented in SoundSourceProxy.

Definition at line 133 of file soundsource.cpp.

Here is the caller graph for this function:

QString Mixxx::SoundSource::getTitle ( ) [virtual]

Return track title

Definition at line 89 of file soundsource.cpp.

QString Mixxx::SoundSource::getTrackNumber ( ) [virtual]

Definition at line 113 of file soundsource.cpp.

QString Mixxx::SoundSource::getType ( ) [virtual]

Definition at line 97 of file soundsource.cpp.

Here is the caller graph for this function:

QString Mixxx::SoundSource::getYear ( ) [virtual]

Definition at line 105 of file soundsource.cpp.

virtual long unsigned Mixxx::SoundSource::length ( ) [pure virtual]
virtual int Mixxx::SoundSource::open ( ) [pure virtual]
virtual int Mixxx::SoundSource::parseHeader ( ) [pure virtual]
void Mixxx::SoundSource::parseReplayGainString ( QString  sReplayGain) [protected]

Definition at line 267 of file soundsource.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Mixxx::SoundSource::processAPETag ( TagLib::APE::Tag *  ape) [protected]

Definition at line 332 of file soundsource.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Mixxx::SoundSource::processBpmString ( QString  tagName,
QString  sBpm 
) [protected]

Definition at line 278 of file soundsource.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Mixxx::SoundSource::processID3v2Tag ( TagLib::ID3v2::Tag *  id3v2) [protected]

Definition at line 288 of file soundsource.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Mixxx::SoundSource::processMP4Tag ( TagLib::MP4::Tag *  mp4) [protected]

Definition at line 414 of file soundsource.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Mixxx::SoundSource::processTaglibFile ( TagLib::File &  f) [protected]

Definition at line 205 of file soundsource.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Mixxx::SoundSource::processXiphComment ( TagLib::Ogg::XiphComment *  xiph) [protected]

Definition at line 358 of file soundsource.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual unsigned Mixxx::SoundSource::read ( unsigned long  size,
const SAMPLE  
) [pure virtual]
virtual long Mixxx::SoundSource::seek ( long  ) [pure virtual]
void Mixxx::SoundSource::setAlbum ( QString  album) [virtual]

Definition at line 150 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setArtist ( QString  artist) [virtual]

Definition at line 142 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setBitrate ( int  bitrate) [virtual]

Definition at line 186 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setBPM ( float  bpm) [virtual]

Definition at line 178 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setChannels ( int  channels) [virtual]

Definition at line 194 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setComment ( QString  comment) [virtual]

Definition at line 154 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setDuration ( int  duration) [virtual]

Definition at line 182 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setGenre ( QString  genre) [virtual]

Definition at line 166 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setKey ( QString  key) [virtual]

Definition at line 201 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setReplayGain ( float  replaygain) [virtual]

Definition at line 174 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setSampleRate ( unsigned int  samplerate) [virtual]

Definition at line 190 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setTitle ( QString  title) [virtual]

Definition at line 146 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setTrackNumber ( QString  trackNumber) [virtual]

Definition at line 170 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setType ( QString  type) [virtual]

Definition at line 158 of file soundsource.cpp.

Here is the caller graph for this function:

void Mixxx::SoundSource::setYear ( QString  year) [virtual]

Definition at line 162 of file soundsource.cpp.

Here is the caller graph for this function:

float Mixxx::SoundSource::str2bpm ( QString  sBpm) [static]

Definition at line 78 of file soundsource.cpp.

Here is the caller graph for this function:


Member Data Documentation

float Mixxx::SoundSource::m_fBPM [protected]

Definition at line 128 of file soundsource.h.

Definition at line 126 of file soundsource.h.

Definition at line 130 of file soundsource.h.

Definition at line 133 of file soundsource.h.

Definition at line 129 of file soundsource.h.

unsigned int Mixxx::SoundSource::m_iSampleRate [protected]

Sample rate of the file

Definition at line 132 of file soundsource.h.

QString Mixxx::SoundSource::m_qFilename [protected]

File name

Definition at line 116 of file soundsource.h.

QString Mixxx::SoundSource::m_sAlbum [protected]

Definition at line 120 of file soundsource.h.

QString Mixxx::SoundSource::m_sArtist [protected]

Definition at line 118 of file soundsource.h.

QString Mixxx::SoundSource::m_sComment [protected]

Definition at line 122 of file soundsource.h.

QString Mixxx::SoundSource::m_sGenre [protected]

Definition at line 124 of file soundsource.h.

QString Mixxx::SoundSource::m_sKey [protected]

Definition at line 127 of file soundsource.h.

QString Mixxx::SoundSource::m_sTitle [protected]

Definition at line 119 of file soundsource.h.

Definition at line 125 of file soundsource.h.

QString Mixxx::SoundSource::m_sType [protected]

Definition at line 121 of file soundsource.h.

QString Mixxx::SoundSource::m_sYear [protected]

Definition at line 123 of file soundsource.h.

const bool Mixxx::SoundSource::s_bDebugMetadata = false [static, protected]

Definition at line 136 of file soundsource.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines