![]() |
|
An implementation of MP4 audio properties. More...
#include <mp4properties.h>
Public Types | |
enum | Codec { Unknown = 0, AAC, ALAC } |
![]() | |
enum | ReadStyle { Fast, Average, Accurate } |
Public Member Functions | |
Properties (File *file, Atoms *atoms, ReadStyle style=Average) | |
virtual | ~Properties () |
virtual int | length () const |
virtual int | bitrate () const |
virtual int | sampleRate () const |
virtual int | channels () const |
virtual int | bitsPerSample () const |
bool | isEncrypted () const |
Codec | codec () const |
Audio codec used in the MP4 file. More... | |
![]() | |
virtual | ~AudioProperties () |
Additional Inherited Members | |
![]() | |
AudioProperties (ReadStyle style) | |
An implementation of MP4 audio properties.
|
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 |
|
virtual |
Returns the number of audio channels.
Implements TagLib::AudioProperties.
bool TagLib::MP4::Properties::isEncrypted | ( | ) | const |
|
virtual |
Returns the length of the file in seconds.
Implements TagLib::AudioProperties.
|
virtual |
Returns the sample rate in Hz.
Implements TagLib::AudioProperties.