An implementation of audio property reading for DSDIFF. More...
#include <dsdiffproperties.h>
Public Member Functions | |
Properties (unsigned int sampleRate, unsigned short channels, unsigned long long samplesCount, int bitrate, ReadStyle style) | |
~Properties () override | |
int | lengthInSeconds () const override |
int | lengthInMilliseconds () const override |
int | bitrate () const override |
int | sampleRate () const override |
int | channels () const override |
int | bitsPerSample () const |
long long | sampleCount () const |
![]() | |
virtual | ~AudioProperties () |
AudioProperties (const AudioProperties &)=delete | |
AudioProperties & | operator= (const AudioProperties &)=delete |
virtual TAGLIB_DEPRECATED int | length () const |
Additional Inherited Members | |
![]() | |
enum | ReadStyle { Fast , Average , Accurate } |
![]() | |
AudioProperties (ReadStyle style) | |
An implementation of audio property reading for DSDIFF.
This reads the data from a DSDIFF stream found in the AudioProperties API.
TagLib::DSDIFF::Properties::Properties | ( | unsigned int | sampleRate, |
unsigned short | channels, | ||
unsigned long long | samplesCount, | ||
int | bitrate, | ||
ReadStyle | style | ||
) |
Create an instance of DSDIFF::Properties with the data read from the ByteVector data.
|
override |
Destroys this DSDIFF::Properties instance.
|
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::DSDIFF::Properties::bitsPerSample | ( | ) | const |
|
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.
|
overridevirtual |
Returns the sample rate in Hz.
Reimplemented from TagLib::AudioProperties.