An implementation of audio properties for Shorten. More...
#include <shortenproperties.h>
Public Member Functions | |
Properties (const PropertyValues *values, ReadStyle style=Average) | |
~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 | shortenVersion () const |
Returns the Shorten file version (1-3). | |
int | fileType () const |
int | bitsPerSample () const |
unsigned long | sampleFrames () const |
![]() | |
virtual | ~AudioProperties () |
AudioProperties (const AudioProperties &)=delete | |
AudioProperties & | operator= (const AudioProperties &)=delete |
virtual TAGLIB_DEPRECATED int | length () const |
virtual int | lengthInSeconds () const |
Additional Inherited Members | |
![]() | |
enum | ReadStyle { Fast , Average , Accurate } |
![]() | |
AudioProperties (ReadStyle style) | |
An implementation of audio properties for Shorten.
TagLib::Shorten::Properties::Properties | ( | const PropertyValues * | values, |
ReadStyle | style = Average |
||
) |
|
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::Shorten::Properties::bitsPerSample | ( | ) | const |
|
overridevirtual |
Returns the number of audio channels.
Implements TagLib::AudioProperties.
int TagLib::Shorten::Properties::fileType | ( | ) | const |
Returns the file type (0-9). 0 = 8-bit µ-law, 1 = signed 8-bit PCM, 2 = unsigned 8-bit PCM, 3 = signed big-endian 16-bit PCM, 4 = unsigned big-endian 16-bit PCM, 5 = signed little-endian 16-bit PCM, 6 = unsigned little-endian 16-bit PCM, 7 = 8-bit ITU-T G.711 µ-law, 8 = 8-bit µ-law, 9 = 8-bit A-law, 10 = 8-bit ITU-T G.711 A-law
|
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.