![]() |
Mixxx
|
#include <soundsource.h>
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 |
Definition at line 53 of file soundsource.h.
Mixxx::SoundSource::SoundSource | ( | QString | qFilename | ) |
Mixxx::SoundSource::~SoundSource | ( | ) | [virtual] |
Definition at line 63 of file soundsource.cpp.
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] |
QString Mixxx::SoundSource::getFilename | ( | ) | [virtual] |
Returns filename
Reimplemented in SoundSourceProxy.
Definition at line 73 of file soundsource.cpp.
QString Mixxx::SoundSource::getGenre | ( | ) | [virtual] |
Definition at line 109 of file soundsource.cpp.
QString Mixxx::SoundSource::getKey | ( | ) | [virtual] |
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.
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] |
QString Mixxx::SoundSource::getYear | ( | ) | [virtual] |
Definition at line 105 of file soundsource.cpp.
virtual long unsigned Mixxx::SoundSource::length | ( | ) | [pure virtual] |
Implemented in SoundSourceCoreAudio, SoundSourceFLAC, SoundSourceMp3, SoundSourceOggVorbis, SoundSourceProxy, and SoundSourceSndFile.
virtual int Mixxx::SoundSource::open | ( | ) | [pure virtual] |
Implemented in SoundSourceCoreAudio, SoundSourceFLAC, SoundSourceMp3, SoundSourceOggVorbis, SoundSourceProxy, and SoundSourceSndFile.
virtual int Mixxx::SoundSource::parseHeader | ( | ) | [pure virtual] |
Implemented in SoundSourceCoreAudio, SoundSourceFLAC, SoundSourceMp3, SoundSourceOggVorbis, SoundSourceProxy, and SoundSourceSndFile.
void Mixxx::SoundSource::parseReplayGainString | ( | QString | sReplayGain | ) | [protected] |
Definition at line 267 of file soundsource.cpp.
bool Mixxx::SoundSource::processAPETag | ( | TagLib::APE::Tag * | ape | ) | [protected] |
Definition at line 332 of file soundsource.cpp.
void Mixxx::SoundSource::processBpmString | ( | QString | tagName, |
QString | sBpm | ||
) | [protected] |
Definition at line 278 of file soundsource.cpp.
bool Mixxx::SoundSource::processID3v2Tag | ( | TagLib::ID3v2::Tag * | id3v2 | ) | [protected] |
Definition at line 288 of file soundsource.cpp.
bool Mixxx::SoundSource::processMP4Tag | ( | TagLib::MP4::Tag * | mp4 | ) | [protected] |
Definition at line 414 of file soundsource.cpp.
bool Mixxx::SoundSource::processTaglibFile | ( | TagLib::File & | f | ) | [protected] |
Definition at line 205 of file soundsource.cpp.
bool Mixxx::SoundSource::processXiphComment | ( | TagLib::Ogg::XiphComment * | xiph | ) | [protected] |
Definition at line 358 of file soundsource.cpp.
virtual unsigned Mixxx::SoundSource::read | ( | unsigned long | size, |
const SAMPLE * | |||
) | [pure virtual] |
Implemented in SoundSourceCoreAudio, SoundSourceFLAC, SoundSourceMp3, SoundSourceOggVorbis, SoundSourceProxy, and SoundSourceSndFile.
virtual long Mixxx::SoundSource::seek | ( | long | ) | [pure virtual] |
Implemented in SoundSourceCoreAudio, SoundSourceFLAC, SoundSourceMp3, SoundSourceOggVorbis, SoundSourceProxy, and SoundSourceSndFile.
void Mixxx::SoundSource::setAlbum | ( | QString | album | ) | [virtual] |
void Mixxx::SoundSource::setArtist | ( | QString | artist | ) | [virtual] |
void Mixxx::SoundSource::setBitrate | ( | int | bitrate | ) | [virtual] |
void Mixxx::SoundSource::setBPM | ( | float | bpm | ) | [virtual] |
void Mixxx::SoundSource::setChannels | ( | int | channels | ) | [virtual] |
void Mixxx::SoundSource::setComment | ( | QString | comment | ) | [virtual] |
void Mixxx::SoundSource::setDuration | ( | int | duration | ) | [virtual] |
void Mixxx::SoundSource::setGenre | ( | QString | genre | ) | [virtual] |
void Mixxx::SoundSource::setKey | ( | QString | key | ) | [virtual] |
void Mixxx::SoundSource::setReplayGain | ( | float | replaygain | ) | [virtual] |
void Mixxx::SoundSource::setSampleRate | ( | unsigned int | samplerate | ) | [virtual] |
void Mixxx::SoundSource::setTitle | ( | QString | title | ) | [virtual] |
void Mixxx::SoundSource::setTrackNumber | ( | QString | trackNumber | ) | [virtual] |
void Mixxx::SoundSource::setType | ( | QString | type | ) | [virtual] |
void Mixxx::SoundSource::setYear | ( | QString | year | ) | [virtual] |
float Mixxx::SoundSource::str2bpm | ( | QString | sBpm | ) | [static] |
float Mixxx::SoundSource::m_fBPM [protected] |
Definition at line 128 of file soundsource.h.
float Mixxx::SoundSource::m_fReplayGain [protected] |
Definition at line 126 of file soundsource.h.
int Mixxx::SoundSource::m_iBitrate [protected] |
Definition at line 130 of file soundsource.h.
int Mixxx::SoundSource::m_iChannels [protected] |
Definition at line 133 of file soundsource.h.
int Mixxx::SoundSource::m_iDuration [protected] |
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.
QString Mixxx::SoundSource::m_sTrackNumber [protected] |
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.