An implementation of audio properties for DSF. More...
#include <dsfproperties.h>
Public Member Functions | |
| Properties (const ByteVector &data, ReadStyle style) | |
| ~Properties () override | |
| Properties (const Properties &)=delete | |
| Properties & | operator= (const Properties &)=delete |
| int | lengthInMilliseconds () const override |
| int | bitrate () const override |
| int | sampleRate () const override |
| int | channels () const override |
| int | formatVersion () const |
| int | formatID () const |
| int | channelType () const |
| int | bitsPerSample () const |
| long long | sampleCount () const |
| int | blockSizePerChannel () 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 |
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 properties for DSF.
| TagLib::DSF::Properties::Properties | ( | const ByteVector & | data, |
| ReadStyle | style | ||
| ) |
|
override |
|
delete |
|
overridevirtual |
Returns the most appropriate bit rate for the file in kb/s. For constant bitrate formats this is simply the bitrate of the file. For variable bitrate formats this is either the average or nominal bitrate.
Reimplemented from TagLib::AudioProperties.
| int TagLib::DSF::Properties::bitsPerSample | ( | ) | const |
| int TagLib::DSF::Properties::blockSizePerChannel | ( | ) | const |
|
overridevirtual |
Returns the number of audio channels.
Implements TagLib::AudioProperties.
| int TagLib::DSF::Properties::channelType | ( | ) | const |
Channel type values: 1 = mono, 2 = stereo, 3 = 3 channels, 4 = quad, 5 = 4 channels, 6 = 5 channels, 7 = 5.1 channels
| int TagLib::DSF::Properties::formatID | ( | ) | const |
| int TagLib::DSF::Properties::formatVersion | ( | ) | const |
|
overridevirtual |
Returns the length of the file in milliseconds.
Reimplemented from TagLib::AudioProperties.
|
delete |
|
overridevirtual |
Returns the sample rate in Hz.
Reimplemented from TagLib::AudioProperties.