TagLib 1.11 (TagLib: TagLib::APE::Properties Class Reference)

TagLib::APE::Properties Class Reference

An implementation of audio property reading for APE. More...

#include <apeproperties.h>

Inheritance diagram for TagLib::APE::Properties:
Collaboration diagram for TagLib::APE::Properties:

List of all members.

Public Member Functions

 Properties (File *file, ReadStyle style=Average)
 Properties (File *file, long streamLength, 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
int bitsPerSample () const
unsigned int sampleFrames () const
int version () const


Detailed Description

An implementation of audio property reading for APE.

This reads the data from an APE stream found in the AudioProperties API.


Constructor & Destructor Documentation

TagLib::APE::Properties::Properties ( File file,
ReadStyle  style = Average 
)

Create an instance of APE::Properties with the data read from the APE::File file.

TagLib::APE::Properties::Properties ( File file,
long  streamLength,
ReadStyle  style = Average 
)

Create an instance of APE::Properties with the data read from the APE::File file.

virtual TagLib::APE::Properties::~Properties (  )  [virtual]

Destroys this APE::Properties instance.


Member Function Documentation

virtual int TagLib::APE::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().

Implements TagLib::AudioProperties.

int TagLib::APE::Properties::lengthInSeconds (  )  const

Returns the length of the file in seconds. The length is rounded down to the nearest whole second.

See also:
lengthInMilliseconds()

Reimplemented from TagLib::AudioProperties.

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

Returns the length of the file in milliseconds.

See also:
lengthInSeconds()

Reimplemented from TagLib::AudioProperties.

virtual int TagLib::APE::Properties::bitrate (  )  const [virtual]

Returns the average bit rate of the file in kb/s.

Implements TagLib::AudioProperties.

virtual int TagLib::APE::Properties::sampleRate (  )  const [virtual]

Returns the sample rate in Hz.

Implements TagLib::AudioProperties.

virtual int TagLib::APE::Properties::channels (  )  const [virtual]

Returns the number of audio channels.

Implements TagLib::AudioProperties.

int TagLib::APE::Properties::bitsPerSample (  )  const

Returns the number of bits per audio sample.

unsigned int TagLib::APE::Properties::sampleFrames (  )  const

Returns the total number of audio samples in file.

int TagLib::APE::Properties::version (  )  const

Returns APE version.


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