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

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

#include <wavpackproperties.h>

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

Public Member Functions

 Properties (File *file, offset_t streamLength, ReadStyle style=Average)
 
 ~Properties () override
 
 Properties (const Properties &)=delete
 
Propertiesoperator= (const Properties &)=delete
 
int lengthInMilliseconds () const override
 
int bitrate () const override
 
int sampleRate () const override
 
int channels () const override
 
int bitsPerSample () const
 
bool isLossless () const
 
unsigned int sampleFrames () const
 
int version () 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 WavPack.

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

Constructor & Destructor Documentation

◆ Properties() [1/2]

TagLib::WavPack::Properties::Properties ( File file,
offset_t  streamLength,
ReadStyle  style = Average 
)

Create an instance of WavPack::Properties.

◆ ~Properties()

TagLib::WavPack::Properties::~Properties ( )
override

Destroys this WavPack::Properties instance.

◆ Properties() [2/2]

TagLib::WavPack::Properties::Properties ( const Properties )
delete

Member Function Documentation

◆ bitrate()

int TagLib::WavPack::Properties::bitrate ( ) const
overridevirtual

Returns the average bit rate of the file in kb/s.

Reimplemented from TagLib::AudioProperties.

◆ bitsPerSample()

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

Returns the number of bits per audio sample.

◆ channels()

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

Returns the number of audio channels.

Implements TagLib::AudioProperties.

◆ isLossless()

bool TagLib::WavPack::Properties::isLossless ( ) const

Returns whether or not the file is lossless encoded.

◆ lengthInMilliseconds()

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

Returns the length of the file in milliseconds.

See also
lengthInSeconds()

Reimplemented from TagLib::AudioProperties.

◆ operator=()

Properties & TagLib::WavPack::Properties::operator= ( const Properties )
delete

◆ sampleFrames()

unsigned int TagLib::WavPack::Properties::sampleFrames ( ) const

Returns the total number of audio samples in file.

◆ sampleRate()

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

Returns the sample rate in Hz. 0 means unknown or custom.

Reimplemented from TagLib::AudioProperties.

◆ version()

int TagLib::WavPack::Properties::version ( ) const

Returns the WavPack version.


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