TagLib API Documentation
Public Member Functions | List of all members
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:

Public Member Functions

 Properties (File *file, offset_t streamLength, ReadStyle style=Average)
 ~Properties () override
 Properties (const Properties &)=delete
Propertiesoperator= (const Properties &)=delete
int lengthInMilliseconds () const override
int bitrate () const override
int sampleRate () const override
int channels () const override
int bitsPerSample () const
unsigned int sampleFrames () const
int version () const
- Public Member Functions inherited from TagLib::AudioProperties
virtual ~AudioProperties ()
 AudioProperties (const AudioProperties &)=delete
AudioPropertiesoperator= (const AudioProperties &)=delete
virtual TAGLIB_DEPRECATED int length () const
virtual int lengthInSeconds () const
virtual int lengthInMilliseconds () const
virtual int bitrate () const
virtual int sampleRate () const
virtual int channels () const =0

Additional Inherited Members

- Public Types inherited from TagLib::AudioProperties
enum  ReadStyle { Fast , Average , Accurate }
- Protected Member Functions inherited from TagLib::AudioProperties
 AudioProperties (ReadStyle style)

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

◆ Properties() [1/2]

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

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

◆ ~Properties()

TagLib::APE::Properties::~Properties ( )

Destroys this APE::Properties instance.

◆ Properties() [2/2]

TagLib::APE::Properties::Properties ( const Properties )

Member Function Documentation

◆ bitrate()

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

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

Reimplemented from TagLib::AudioProperties.

◆ bitsPerSample()

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

Returns the number of bits per audio sample.

◆ channels()

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

Returns the number of audio channels.

Implements TagLib::AudioProperties.

◆ lengthInMilliseconds()

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

Returns the length of the file in milliseconds.

See also

Reimplemented from TagLib::AudioProperties.

◆ operator=()

Properties & TagLib::APE::Properties::operator= ( const Properties )

◆ sampleFrames()

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

Returns the total number of audio samples in file.

◆ sampleRate()

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

Returns the sample rate in Hz.

Reimplemented from TagLib::AudioProperties.

◆ version()

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

Returns the APE version.

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