![]() |
Miam-Player
0.8.0
A nice music player
|
#include <xmproperties.h>
Public Types | |
enum | { LinearFreqTable = 1 } |
Flag bits. More... | |
![]() | |
enum | ReadStyle { Fast, Average, Accurate } |
Reading audio properties from a file can sometimes be very time consuming and for the most accurate results can often involve reading the entire file. More... | |
Public Member Functions | |
Properties (AudioProperties::ReadStyle propertiesStyle) | |
virtual | ~Properties () |
int | length () const |
Returns the length of the file in seconds. More... | |
int | lengthInSeconds () const |
int | lengthInMilliseconds () const |
int | bitrate () const |
Returns the most appropriate bit rate for the file in kb/s. More... | |
int | sampleRate () const |
Returns the sample rate in Hz. More... | |
int | channels () const |
Returns the number of audio channels. More... | |
unsigned short | lengthInPatterns () const |
unsigned short | version () const |
unsigned short | restartPosition () const |
unsigned short | patternCount () const |
unsigned short | instrumentCount () const |
unsigned int | sampleCount () const |
unsigned short | flags () const |
unsigned short | tempo () const |
unsigned short | bpmSpeed () const |
void | setChannels (int channels) |
void | setLengthInPatterns (unsigned short lengthInPatterns) |
void | setVersion (unsigned short version) |
void | setRestartPosition (unsigned short restartPosition) |
void | setPatternCount (unsigned short patternCount) |
void | setInstrumentCount (unsigned short instrumentCount) |
void | setSampleCount (unsigned int sampleCount) |
void | setFlags (unsigned short flags) |
void | setTempo (unsigned short tempo) |
void | setBpmSpeed (unsigned short bpmSpeed) |
![]() | |
virtual | ~AudioProperties () |
Destroys this AudioProperties instance. More... | |
int | lengthInSeconds () const |
Returns the length of the file in seconds. More... | |
int | lengthInMilliseconds () const |
Returns the length of the file in milliseconds. More... | |
Friends | |
class | File |
Additional Inherited Members | |
![]() | |
AudioProperties (ReadStyle style) | |
Construct an audio properties instance. More... | |
TagLib::XM::Properties::Properties | ( | AudioProperties::ReadStyle | propertiesStyle | ) |
|
virtual |
|
virtual |
Returns the most appropriate bit rate for the file in kb/s.
For constant bitrate formats this is simply the bitrate of the file. For variable bitrate formats this is either the average or nominal bitrate.
Implements TagLib::AudioProperties.
unsigned short TagLib::XM::Properties::bpmSpeed | ( | ) | const |
|
virtual |
Returns the number of audio channels.
Implements TagLib::AudioProperties.
unsigned short TagLib::XM::Properties::flags | ( | ) | const |
unsigned short TagLib::XM::Properties::instrumentCount | ( | ) | const |
|
virtual |
Returns the length of the file in seconds.
Implements TagLib::AudioProperties.
int TagLib::XM::Properties::lengthInMilliseconds | ( | ) | const |
unsigned short TagLib::XM::Properties::lengthInPatterns | ( | ) | const |
int TagLib::XM::Properties::lengthInSeconds | ( | ) | const |
unsigned short TagLib::XM::Properties::patternCount | ( | ) | const |
unsigned short TagLib::XM::Properties::restartPosition | ( | ) | const |
unsigned int TagLib::XM::Properties::sampleCount | ( | ) | const |
|
virtual |
Returns the sample rate in Hz.
Implements TagLib::AudioProperties.
void TagLib::XM::Properties::setBpmSpeed | ( | unsigned short | bpmSpeed | ) |
void TagLib::XM::Properties::setChannels | ( | int | channels | ) |
void TagLib::XM::Properties::setFlags | ( | unsigned short | flags | ) |
void TagLib::XM::Properties::setInstrumentCount | ( | unsigned short | instrumentCount | ) |
void TagLib::XM::Properties::setLengthInPatterns | ( | unsigned short | lengthInPatterns | ) |
void TagLib::XM::Properties::setPatternCount | ( | unsigned short | patternCount | ) |
void TagLib::XM::Properties::setRestartPosition | ( | unsigned short | restartPosition | ) |
void TagLib::XM::Properties::setSampleCount | ( | unsigned int | sampleCount | ) |
void TagLib::XM::Properties::setTempo | ( | unsigned short | tempo | ) |
void TagLib::XM::Properties::setVersion | ( | unsigned short | version | ) |
unsigned short TagLib::XM::Properties::tempo | ( | ) | const |
unsigned short TagLib::XM::Properties::version | ( | ) | const |
|
friend |