TagLib API Documentation
Public Member Functions | List of all members
TagLib::DSDIFF::Properties Class Reference

An implementation of audio property reading for DSDIFF. More...

#include <dsdiffproperties.h>

Inheritance diagram for TagLib::DSDIFF::Properties:
[legend]
Collaboration diagram for TagLib::DSDIFF::Properties:
[legend]

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
 
- Public Member Functions inherited from TagLib::AudioProperties
virtual ~AudioProperties ()
 
 AudioProperties (const AudioProperties &)=delete
 
AudioPropertiesoperator= (const AudioProperties &)=delete
 
virtual TAGLIB_DEPRECATED int length () const
 
virtual int lengthInSeconds () const
 
virtual int lengthInMilliseconds () const
 
virtual int bitrate () const
 
virtual int sampleRate () const
 
virtual int channels () const =0
 

Additional Inherited Members

- Public Types inherited from TagLib::AudioProperties
enum  ReadStyle { Fast , Average , Accurate }
 
- Protected Member Functions inherited from TagLib::AudioProperties
 AudioProperties (ReadStyle style)
 

Detailed Description

An implementation of audio property reading for DSDIFF.

This reads the data from a DSDIFF stream found in the AudioProperties API.

Constructor & Destructor Documentation

◆ Properties()

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.

◆ ~Properties()

TagLib::DSDIFF::Properties::~Properties ( )
override

Destroys this DSDIFF::Properties instance.

Member Function Documentation

◆ bitrate()

int TagLib::DSDIFF::Properties::bitrate ( ) const
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.

◆ bitsPerSample()

int TagLib::DSDIFF::Properties::bitsPerSample ( ) const

◆ channels()

int TagLib::DSDIFF::Properties::channels ( ) const
overridevirtual

Returns the number of audio channels.

Implements TagLib::AudioProperties.

◆ lengthInMilliseconds()

int TagLib::DSDIFF::Properties::lengthInMilliseconds ( ) const
overridevirtual

Returns the length of the file in milliseconds.

See also
lengthInSeconds()

Reimplemented from TagLib::AudioProperties.

◆ lengthInSeconds()

int TagLib::DSDIFF::Properties::lengthInSeconds ( ) const
overridevirtual

Returns the length of the file in seconds. The length is rounded down to the nearest whole second.

See also
lengthInMilliseconds()

Reimplemented from TagLib::AudioProperties.

◆ sampleCount()

long long TagLib::DSDIFF::Properties::sampleCount ( ) const

◆ sampleRate()

int TagLib::DSDIFF::Properties::sampleRate ( ) const
overridevirtual

Returns the sample rate in Hz.

Reimplemented from TagLib::AudioProperties.


The documentation for this class was generated from the following file: