TagLib::MP4::Properties Class Reference

An implementation of MP4 audio properties. More...

#include <mp4properties.h>

Inheritance diagram for TagLib::MP4::Properties:
Collaboration diagram for TagLib::MP4::Properties:

Public Types

enum  Codec { Unknown = 0, AAC, ALAC }
- Public Types inherited from TagLib::AudioProperties
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.
- Public Member Functions inherited from TagLib::AudioProperties
virtual ~AudioProperties ()

Additional Inherited Members

- Protected Member Functions inherited from TagLib::AudioProperties
 AudioProperties (ReadStyle style)

Detailed Description

An implementation of MP4 audio properties.

Member Enumeration Documentation

Enumerator:
Unknown 
AAC 
ALAC 

Constructor & Destructor Documentation

TagLib::MP4::Properties::Properties ( File file,
Atoms *  atoms,
ReadStyle  style = Average 
)
virtual TagLib::MP4::Properties::~Properties ( )
virtual

Member Function Documentation

virtual int TagLib::MP4::Properties::bitrate ( ) const
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 int TagLib::MP4::Properties::bitsPerSample ( ) const
virtual
virtual int TagLib::MP4::Properties::channels ( ) const
virtual

Returns the number of audio channels.

Implements TagLib::AudioProperties.

Codec TagLib::MP4::Properties::codec ( ) const

Audio codec used in the MP4 file.

bool TagLib::MP4::Properties::isEncrypted ( ) const
virtual int TagLib::MP4::Properties::length ( ) const
virtual

Returns the length of the file in seconds.

Implements TagLib::AudioProperties.

virtual int TagLib::MP4::Properties::sampleRate ( ) const
virtual

Returns the sample rate in Hz.

Implements TagLib::AudioProperties.


The documentation for this class was generated from the following file: