TagLib API Documentation
Public Member Functions | List of all members
TagLib::TrueAudio::Properties Class Reference

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

#include <trueaudioproperties.h>

Inheritance diagram for TagLib::TrueAudio::Properties:
[legend]
Collaboration diagram for TagLib::TrueAudio::Properties:
[legend]

Public Member Functions

 Properties (const ByteVector &data, offset_t streamLength, ReadStyle style=Average)
 
 ~Properties () override
 
 Properties (const Properties &)=delete
 
Propertiesoperator= (const Properties &)=delete
 
int lengthInSeconds () const override
 
int lengthInMilliseconds () const override
 
int bitrate () const override
 
int sampleRate () const override
 
int channels () const override
 
int bitsPerSample () const
 
unsigned int sampleFrames () const
 
int ttaVersion () 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 TrueAudio.

This reads the data from a TrueAudio stream found in the AudioProperties API.

Constructor & Destructor Documentation

◆ Properties() [1/2]

TagLib::TrueAudio::Properties::Properties ( const ByteVector data,
offset_t  streamLength,
ReadStyle  style = Average 
)

Create an instance of TrueAudio::Properties with the data read from the ByteVector data.

◆ ~Properties()

TagLib::TrueAudio::Properties::~Properties ( )
override

Destroys this TrueAudio::Properties instance.

◆ Properties() [2/2]

TagLib::TrueAudio::Properties::Properties ( const Properties )
delete

Member Function Documentation

◆ bitrate()

int TagLib::TrueAudio::Properties::bitrate ( ) const
overridevirtual

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

Reimplemented from TagLib::AudioProperties.

◆ bitsPerSample()

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

Returns the number of bits per audio sample.

◆ channels()

int TagLib::TrueAudio::Properties::channels ( ) const
overridevirtual

Returns the number of audio channels.

Implements TagLib::AudioProperties.

◆ lengthInMilliseconds()

int TagLib::TrueAudio::Properties::lengthInMilliseconds ( ) const
overridevirtual

Returns the length of the file in milliseconds.

See also
lengthInSeconds()

Reimplemented from TagLib::AudioProperties.

◆ lengthInSeconds()

int TagLib::TrueAudio::Properties::lengthInSeconds ( ) const
overridevirtual

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.

◆ operator=()

Properties & TagLib::TrueAudio::Properties::operator= ( const Properties )
delete

◆ sampleFrames()

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

Returns the total number of sample frames

◆ sampleRate()

int TagLib::TrueAudio::Properties::sampleRate ( ) const
overridevirtual

Returns the sample rate in Hz.

Reimplemented from TagLib::AudioProperties.

◆ ttaVersion()

int TagLib::TrueAudio::Properties::ttaVersion ( ) const

Returns the major version number.


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