![]() |
Miam-Player
0.8.0
A nice music player
|
#include <modproperties.h>
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 int | instrumentCount () const |
unsigned char | lengthInPatterns () const |
void | setChannels (int channels) |
void | setInstrumentCount (unsigned int sampleCount) |
void | setLengthInPatterns (unsigned char lengthInPatterns) |
![]() | |
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 | |
![]() | |
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... | |
![]() | |
AudioProperties (ReadStyle style) | |
Construct an audio properties instance. More... | |
TagLib::Mod::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.
|
virtual |
Returns the number of audio channels.
Implements TagLib::AudioProperties.
unsigned int TagLib::Mod::Properties::instrumentCount | ( | ) | const |
|
virtual |
Returns the length of the file in seconds.
Implements TagLib::AudioProperties.
int TagLib::Mod::Properties::lengthInMilliseconds | ( | ) | const |
unsigned char TagLib::Mod::Properties::lengthInPatterns | ( | ) | const |
int TagLib::Mod::Properties::lengthInSeconds | ( | ) | const |
|
virtual |
Returns the sample rate in Hz.
Implements TagLib::AudioProperties.
void TagLib::Mod::Properties::setChannels | ( | int | channels | ) |
void TagLib::Mod::Properties::setInstrumentCount | ( | unsigned int | sampleCount | ) |
void TagLib::Mod::Properties::setLengthInPatterns | ( | unsigned char | lengthInPatterns | ) |
|
friend |