TagLib 1.11 (TagLib: TagLib::Mod::Properties Class Reference)

TagLib::Mod::Properties Class Reference

#include <modproperties.h>

Inheritance diagram for TagLib::Mod::Properties:
Collaboration diagram for TagLib::Mod::Properties:

List of all members.

Public Member Functions

 Properties (AudioProperties::ReadStyle propertiesStyle)
virtual ~Properties ()
int length () const
int lengthInSeconds () const
int lengthInMilliseconds () const
int bitrate () const
int sampleRate () const
int channels () const
unsigned int instrumentCount () const
unsigned char lengthInPatterns () const
void setChannels (int channels)
void setInstrumentCount (unsigned int sampleCount)
void setLengthInPatterns (unsigned char lengthInPatterns)

Friends

class File

Constructor & Destructor Documentation

TagLib::Mod::Properties::Properties ( AudioProperties::ReadStyle  propertiesStyle)
virtual TagLib::Mod::Properties::~Properties ( ) [virtual]

Member Function Documentation

int TagLib::Mod::Properties::bitrate ( ) const [virtual]

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.

Implements TagLib::AudioProperties.

int TagLib::Mod::Properties::channels ( ) const [virtual]

Returns the number of audio channels.

Implements TagLib::AudioProperties.

unsigned int TagLib::Mod::Properties::instrumentCount ( ) const
int TagLib::Mod::Properties::length ( ) const [virtual]

Returns the length of the file in seconds.

Implements TagLib::AudioProperties.

int TagLib::Mod::Properties::lengthInMilliseconds ( ) const

Returns the length of the file in milliseconds.

See also:
lengthInSeconds()

Reimplemented from TagLib::AudioProperties.

unsigned char TagLib::Mod::Properties::lengthInPatterns ( ) const
int TagLib::Mod::Properties::lengthInSeconds ( ) const

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.

int TagLib::Mod::Properties::sampleRate ( ) const [virtual]

Returns the sample rate in Hz.

Implements TagLib::AudioProperties.

void TagLib::Mod::Properties::setChannels ( int  channels)
void TagLib::Mod::Properties::setInstrumentCount ( unsigned int  sampleCount)
void TagLib::Mod::Properties::setLengthInPatterns ( unsigned char  lengthInPatterns)

Friends And Related Function Documentation

friend class File [friend]

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