Miam-Player  0.8.0
A nice music player
TagLib::MP4::Properties Class Reference

An implementation of MP4 audio properties. More...

#include <mp4properties.h>

Inheritance diagram for TagLib::MP4::Properties:
TagLib::AudioProperties

Public Types

enum  Codec { Unknown = 0, AAC, ALAC }
 
- Public Types inherited from TagLib::AudioProperties
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 (File *file, Atoms *atoms, ReadStyle style=Average)
 
virtual ~Properties ()
 
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...
 
virtual int bitsPerSample () const
 Returns the number of bits per audio sample. More...
 
bool isEncrypted () const
 Returns whether or not the file is encrypted. More...
 
Codec codec () const
 Returns the codec used in the file. More...
 
- Public Member Functions inherited from TagLib::AudioProperties
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

- Protected Member Functions inherited from TagLib::AudioProperties
 AudioProperties (ReadStyle style)
 Construct an audio properties instance. More...
 

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 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.

Note
This method is just an alias of lengthInSeconds().
Deprecated:

Implements TagLib::AudioProperties.

int TagLib::MP4::Properties::lengthInMilliseconds ( ) const

Returns the length of the file in milliseconds.

See also
lengthInSeconds()
int TagLib::MP4::Properties::lengthInSeconds ( ) const

Returns the length of the file in seconds.

The length is rounded down to the nearest whole second.

See also
lengthInMilliseconds()
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: