IT: support channels property

This commit is contained in:
Mathias Panzenböck
2011-06-20 02:19:16 +02:00
parent 4b44f25048
commit d1cb8ae09d
6 changed files with 40 additions and 15 deletions

View File

@ -34,9 +34,9 @@ public:
{
}
int channels;
uint instrumentCount;
uint tableLength;
int channels;
uint instrumentCount;
uchar tableLength;
};
Mod::Properties::Properties(AudioProperties::ReadStyle propertiesStyle) :
@ -75,7 +75,7 @@ uint Mod::Properties::instrumentCount() const
return d->instrumentCount;
}
uint Mod::Properties::tableLength() const
uchar Mod::Properties::tableLength() const
{
return d->tableLength;
}
@ -90,7 +90,7 @@ void Mod::Properties::setInstrumentCount(uint instrumentCount)
d->instrumentCount = instrumentCount;
}
void Mod::Properties::setTableLength(uint tableLength)
void Mod::Properties::setTableLength(uchar tableLength)
{
d->tableLength = tableLength;
}

View File

@ -38,14 +38,14 @@ namespace TagLib {
int sampleRate() const;
int channels() const;
uint instrumentCount() const;
uint tableLength() const;
uint instrumentCount() const;
uchar tableLength() const;
protected:
void setChannels(int channels);
void setInstrumentCount(uint sampleCount);
void setTableLength(uint tableLength);
void setTableLength(uchar tableLength);
private:
Properties(const Properties&);