![]() |
Miam-Player
0.8.0
A nice music player
|
An implementation of ASF audio properties. More...
#include <asfproperties.h>
Public Types | |
enum | Codec { Unknown = 0, WMA1, WMA2, WMA9Pro, WMA9Lossless } |
Audio codec types can be used in ASF file. 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 () | |
Creates an instance of ASF::Properties. More... | |
virtual | ~Properties () |
Destroys this ASF::Properties instance. More... | |
virtual int | length () const |
Returns the length of the file in seconds. 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... | |
virtual int | bitrate () const |
Returns the average bit rate of the file in kb/s. More... | |
virtual int | sampleRate () const |
Returns the sample rate in Hz. More... | |
virtual int | channels () const |
Returns the number of audio channels. More... | |
int | bitsPerSample () const |
Returns the number of bits per audio sample. More... | |
Codec | codec () const |
Returns the codec used in the file. More... | |
String | codecName () const |
Returns the concrete codec name, for example "Windows Media Audio 9.1" used in the file if available, otherwise an empty string. More... | |
String | codecDescription () const |
Returns the codec description, typically contains the encoder settings, for example "VBR Quality 50, 44kHz, stereo 1-pass VBR" if available, otherwise an empty string. More... | |
bool | isEncrypted () const |
Returns whether or not the file is encrypted. More... | |
void | setLength (int value) |
void | setLengthInMilliseconds (int value) |
void | setBitrate (int value) |
void | setSampleRate (int value) |
void | setChannels (int value) |
void | setBitsPerSample (int value) |
void | setCodec (int value) |
void | setCodecName (const String &value) |
void | setCodecDescription (const String &value) |
void | setEncrypted (bool value) |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
AudioProperties (ReadStyle style) | |
Construct an audio properties instance. More... | |
An implementation of ASF audio properties.
Audio codec types can be used in ASF file.
Enumerator | |
---|---|
Unknown |
Couldn't detect the codec. |
WMA1 |
Windows Media Audio 1. |
WMA2 |
Windows Media Audio 2 or above. |
WMA9Pro |
Windows Media Audio 9 Professional. |
WMA9Lossless |
Windows Media Audio 9 Lossless. |
TagLib::ASF::Properties::Properties | ( | ) |
Creates an instance of ASF::Properties.
|
virtual |
Destroys this ASF::Properties instance.
|
virtual |
Returns the average bit rate of the file in kb/s.
Implements TagLib::AudioProperties.
int TagLib::ASF::Properties::bitsPerSample | ( | ) | const |
Returns the number of bits per audio sample.
|
virtual |
Returns the number of audio channels.
Implements TagLib::AudioProperties.
Codec TagLib::ASF::Properties::codec | ( | ) | const |
Returns the codec used in the file.
String TagLib::ASF::Properties::codecDescription | ( | ) | const |
Returns the codec description, typically contains the encoder settings, for example "VBR Quality 50, 44kHz, stereo 1-pass VBR" if available, otherwise an empty string.
String TagLib::ASF::Properties::codecName | ( | ) | const |
Returns the concrete codec name, for example "Windows Media Audio 9.1" used in the file if available, otherwise an empty string.
bool TagLib::ASF::Properties::isEncrypted | ( | ) | const |
Returns whether or not the file is encrypted.
|
virtual |
Returns the length of the file in seconds.
The length is rounded down to the nearest whole second.
Implements TagLib::AudioProperties.
int TagLib::ASF::Properties::lengthInMilliseconds | ( | ) | const |
Returns the length of the file in milliseconds.
int TagLib::ASF::Properties::lengthInSeconds | ( | ) | const |
Returns the length of the file in seconds.
The length is rounded down to the nearest whole second.
|
virtual |
Returns the sample rate in Hz.
Implements TagLib::AudioProperties.
void TagLib::ASF::Properties::setBitrate | ( | int | value | ) |
void TagLib::ASF::Properties::setBitsPerSample | ( | int | value | ) |
void TagLib::ASF::Properties::setChannels | ( | int | value | ) |
void TagLib::ASF::Properties::setCodec | ( | int | value | ) |
void TagLib::ASF::Properties::setCodecDescription | ( | const String & | value | ) |
void TagLib::ASF::Properties::setCodecName | ( | const String & | value | ) |
void TagLib::ASF::Properties::setEncrypted | ( | bool | value | ) |
void TagLib::ASF::Properties::setLength | ( | int | value | ) |
void TagLib::ASF::Properties::setLengthInMilliseconds | ( | int | value | ) |
void TagLib::ASF::Properties::setSampleRate | ( | int | value | ) |