![]() |
|
An implementation of audio property reading for AIFF. More...
#include <aiffproperties.h>
Public Member Functions | |
Properties (const ByteVector &data, ReadStyle style) | |
Properties (File *file, ReadStyle style) | |
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 |
int | sampleWidth () const |
unsigned int | sampleFrames () const |
bool | isAiffC () const |
ByteVector | compressionType () const |
String | compressionName () const |
An implementation of audio property reading for AIFF.
This reads the data from an AIFF stream found in the AudioProperties API.
TagLib::RIFF::AIFF::Properties::Properties | ( | const ByteVector & | data, |
ReadStyle | style | ||
) |
Create an instance of AIFF::Properties with the data read from the ByteVector data.
Create an instance of AIFF::Properties with the data read from the AIFF::File file.
virtual TagLib::RIFF::AIFF::Properties::~Properties | ( | ) | [virtual] |
Destroys this AIFF::Properties instance.
virtual int TagLib::RIFF::AIFF::Properties::bitrate | ( | ) | const [virtual] |
Returns the average bit rate of the file in kb/s.
Implements TagLib::AudioProperties.
int TagLib::RIFF::AIFF::Properties::bitsPerSample | ( | ) | const |
Returns the number of bits per audio sample.
virtual int TagLib::RIFF::AIFF::Properties::channels | ( | ) | const [virtual] |
Returns the number of audio channels.
Implements TagLib::AudioProperties.
String TagLib::RIFF::AIFF::Properties::compressionName | ( | ) | const |
ByteVector TagLib::RIFF::AIFF::Properties::compressionType | ( | ) | const |
bool TagLib::RIFF::AIFF::Properties::isAiffC | ( | ) | const |
Returns true if the file is in AIFF-C format, false if AIFF format.
virtual int TagLib::RIFF::AIFF::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::RIFF::AIFF::Properties::lengthInMilliseconds | ( | ) | const |
Returns the length of the file in milliseconds.
Reimplemented from TagLib::AudioProperties.
int TagLib::RIFF::AIFF::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::RIFF::AIFF::Properties::sampleFrames | ( | ) | const |
Returns the number of sample frames
virtual int TagLib::RIFF::AIFF::Properties::sampleRate | ( | ) | const [virtual] |
Returns the sample rate in Hz.
Implements TagLib::AudioProperties.
int TagLib::RIFF::AIFF::Properties::sampleWidth | ( | ) | const |
Returns the number of bits per audio sample.