An implementation of audio property reading for TrueAudio. More...
#include <trueaudioproperties.h>
Public Member Functions | |
Properties (const ByteVector &data, offset_t streamLength, ReadStyle style=Average) | |
~Properties () override | |
Properties (const Properties &)=delete | |
Properties & | operator= (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 | |
AudioProperties & | operator= (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) | |
An implementation of audio property reading for TrueAudio.
This reads the data from a TrueAudio stream found in the AudioProperties API.
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.
|
override |
Destroys this TrueAudio::Properties instance.
|
delete |
|
overridevirtual |
Returns the average bit rate of the file in kb/s.
Reimplemented from TagLib::AudioProperties.
int TagLib::TrueAudio::Properties::bitsPerSample | ( | ) | const |
Returns the number of bits per audio sample.
|
overridevirtual |
Returns the number of audio channels.
Implements TagLib::AudioProperties.
|
overridevirtual |
Returns the length of the file in milliseconds.
Reimplemented from TagLib::AudioProperties.
|
overridevirtual |
Returns the length of the file in seconds. The length is rounded down to the nearest whole second.
Reimplemented from TagLib::AudioProperties.
|
delete |
unsigned int TagLib::TrueAudio::Properties::sampleFrames | ( | ) | const |
Returns the total number of sample frames
|
overridevirtual |
Returns the sample rate in Hz.
Reimplemented from TagLib::AudioProperties.
int TagLib::TrueAudio::Properties::ttaVersion | ( | ) | const |
Returns the major version number.