|
|
An implementation of MP4 audio properties. More...
#include <mp4properties.h>


Public Types | |
| enum | Codec { Unknown = 0, AAC, ALAC } |
Public Member Functions | |
| Properties (File *file, Atoms *atoms, 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 |
| virtual int | bitsPerSample () const |
| bool | isEncrypted () const |
| Codec | codec () const |
An implementation of MP4 audio properties.
| TagLib::MP4::Properties::Properties | ( | File * | file, |
| Atoms * | atoms, | ||
| ReadStyle | style = Average |
||
| ) |
| virtual TagLib::MP4::Properties::~Properties | ( | ) | [virtual] |
| virtual int TagLib::MP4::Properties::bitrate | ( | ) | const [virtual] |
Returns the average bit rate of the file in kb/s.
Implements TagLib::AudioProperties.
| virtual int TagLib::MP4::Properties::bitsPerSample | ( | ) | const [virtual] |
Returns the number of bits per audio sample.
| virtual int TagLib::MP4::Properties::channels | ( | ) | const [virtual] |
Returns the number of audio channels.
Implements TagLib::AudioProperties.
| Codec TagLib::MP4::Properties::codec | ( | ) | const |
Returns the codec used in the file.
| bool TagLib::MP4::Properties::isEncrypted | ( | ) | const |
Returns whether or not the file is encrypted.
| virtual int TagLib::MP4::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::MP4::Properties::lengthInMilliseconds | ( | ) | const |
Returns the length of the file in milliseconds.
Reimplemented from TagLib::AudioProperties.
| int TagLib::MP4::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.
| virtual int TagLib::MP4::Properties::sampleRate | ( | ) | const [virtual] |
Returns the sample rate in Hz.
Implements TagLib::AudioProperties.