|
|
An implementation of audio property reading for MP3. More...
#include <mpegproperties.h>


Public Member Functions | |
| Properties (File *file, ReadStyle style=Average) | |
| virtual | ~Properties () |
| virtual int | length () const |
| int | lengthInSeconds () const |
| int | lengthInMilliseconds () const |
| virtual int | bitrate () const |
| virtual int | sampleRate () const |
| virtual int | channels () const |
| const XingHeader * | xingHeader () const |
| Header::Version | version () const |
| int | layer () const |
| bool | protectionEnabled () const |
| Header::ChannelMode | channelMode () const |
| bool | isCopyrighted () const |
| bool | isOriginal () const |
An implementation of audio property reading for MP3.
This reads the data from an MPEG Layer III stream found in the AudioProperties API.
| TagLib::MPEG::Properties::Properties | ( | File * | file, |
| ReadStyle | style = Average |
||
| ) |
Create an instance of MPEG::Properties with the data read from the MPEG::File file.
| virtual TagLib::MPEG::Properties::~Properties | ( | ) | [virtual] |
Destroys this MPEG Properties instance.
| virtual int TagLib::MPEG::Properties::bitrate | ( | ) | const [virtual] |
Returns the average bit rate of the file in kb/s.
Implements TagLib::AudioProperties.
Returns the channel mode for this frame.
| virtual int TagLib::MPEG::Properties::channels | ( | ) | const [virtual] |
Returns the number of audio channels.
Implements TagLib::AudioProperties.
| bool TagLib::MPEG::Properties::isCopyrighted | ( | ) | const |
Returns true if the copyrighted bit is set.
| bool TagLib::MPEG::Properties::isOriginal | ( | ) | const |
Returns true if the "original" bit is set.
| int TagLib::MPEG::Properties::layer | ( | ) | const |
Returns the layer version. This will be between the values 1-3.
| virtual int TagLib::MPEG::Properties::length | ( | ) | const [virtual] |
Returns the length of the file in seconds. The length is rounded down to the nearest whole second.
Implements TagLib::AudioProperties.
| int TagLib::MPEG::Properties::lengthInMilliseconds | ( | ) | const |
Returns the length of the file in milliseconds.
Reimplemented from TagLib::AudioProperties.
| int TagLib::MPEG::Properties::lengthInSeconds | ( | ) | const |
Returns the length of the file in seconds. The length is rounded down to the nearest whole second.
Reimplemented from TagLib::AudioProperties.
| bool TagLib::MPEG::Properties::protectionEnabled | ( | ) | const |
Returns true if the MPEG protection bit is enabled.
| virtual int TagLib::MPEG::Properties::sampleRate | ( | ) | const [virtual] |
Returns the sample rate in Hz.
Implements TagLib::AudioProperties.
Returns the MPEG Version of the file.
| const XingHeader* TagLib::MPEG::Properties::xingHeader | ( | ) | const |
Returns a pointer to the Xing/VBRI header if one exists or null if no Xing/VBRI header was found.