TagLib 1.10 (TagLib: TagLib::TrueAudio::Properties Class Reference)

TagLib::TrueAudio::Properties Class Reference

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

#include <trueaudioproperties.h>

Inheritance diagram for TagLib::TrueAudio::Properties:
Collaboration diagram for TagLib::TrueAudio::Properties:

List of all members.

Public Member Functions

 Properties (const ByteVector &data, 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
uint sampleFrames () const
int ttaVersion () const

Detailed Description

An implementation of audio property reading for TrueAudio.

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


Constructor & Destructor Documentation

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

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

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

Destroys this TrueAudio::Properties instance.


Member Function Documentation

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

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

Implements TagLib::AudioProperties.

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

Returns the number of bits per audio sample.

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

Returns the number of audio channels.

Implements TagLib::AudioProperties.

virtual int TagLib::TrueAudio::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::TrueAudio::Properties::lengthInMilliseconds ( ) const

Returns the length of the file in milliseconds.

See also:
lengthInSeconds()

Reimplemented from TagLib::AudioProperties.

int TagLib::TrueAudio::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.

uint TagLib::TrueAudio::Properties::sampleFrames ( ) const

Returns the total number of sample frames

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

Returns the sample rate in Hz.

Implements TagLib::AudioProperties.

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

Returns the major version number.


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