![]() |
Miam-Player
0.8.0
A nice music player
|
An implementation of audio property reading for AIFF. More...
#include <aiffproperties.h>
Public Member Functions | |
Properties (const ByteVector &data, ReadStyle style) | |
Create an instance of AIFF::Properties with the data read from the ByteVector data. More... | |
Properties (File *file, ReadStyle style) | |
Create an instance of AIFF::Properties with the data read from the AIFF::File file. More... | |
virtual | ~Properties () |
Destroys this AIFF::Properties instance. More... | |
virtual int | length () const |
Returns the length of the file in seconds. More... | |
int | lengthInSeconds () const |
Returns the length of the file in seconds. More... | |
int | lengthInMilliseconds () const |
Returns the length of the file in milliseconds. More... | |
virtual int | bitrate () const |
Returns the average bit rate of the file in kb/s. More... | |
virtual int | sampleRate () const |
Returns the sample rate in Hz. More... | |
virtual int | channels () const |
Returns the number of audio channels. More... | |
int | bitsPerSample () const |
Returns the number of bits per audio sample. More... | |
int | sampleWidth () const |
Returns the number of bits per audio sample. More... | |
unsigned int | sampleFrames () const |
Returns the number of sample frames. More... | |
bool | isAiffC () const |
Returns true if the file is in AIFF-C format, false if AIFF format. More... | |
ByteVector | compressionType () const |
Returns the compression type of the AIFF-C file. More... | |
String | compressionName () const |
Returns the concrete compression name of the AIFF-C file. More... | |
![]() | |
virtual | ~AudioProperties () |
Destroys this AudioProperties instance. More... | |
int | lengthInSeconds () const |
Returns the length of the file in seconds. More... | |
int | lengthInMilliseconds () const |
Returns the length of the file in milliseconds. More... | |
Additional Inherited Members | |
![]() | |
enum | ReadStyle { Fast, Average, Accurate } |
Reading audio properties from a file can sometimes be very time consuming and for the most accurate results can often involve reading the entire file. More... | |
![]() | |
AudioProperties (ReadStyle style) | |
Construct an audio properties instance. More... | |
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 |
Destroys this AIFF::Properties instance.
|
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 |
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 |
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.
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.
unsigned int TagLib::RIFF::AIFF::Properties::sampleFrames | ( | ) | const |
Returns the number of sample frames.
|
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.