|
|
An implementation of audio property reading for TrueAudio. More...
#include <trueaudioproperties.h>


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 |
| unsigned int | sampleFrames () const |
| int | ttaVersion () const |
An implementation of audio property reading for TrueAudio.
This reads the data from an TrueAudio stream found in the AudioProperties API.
| 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.
| 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.
Implements TagLib::AudioProperties.
| int TagLib::TrueAudio::Properties::lengthInMilliseconds | ( | ) | const |
Returns the length of the file in milliseconds.
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.
Reimplemented from TagLib::AudioProperties.
| unsigned int 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.