aboutsummaryrefslogtreecommitdiffstats
path: root/taglib/xm
diff options
context:
space:
mode:
authorMathias Panzenböck <grosser.meister.morti@gmx.net>2011-06-18 03:31:49 +0200
committerMathias Panzenböck <grosser.meister.morti@gmx.net>2011-06-18 03:31:49 +0200
commit5ad69f6f2af252eb7b0841974dc83638fab3537d (patch)
tree69655739d2ee990718d2005096dd76acf922d4fe /taglib/xm
parentfe356c31b4a71e99309696c0717b03fcc6f17f0f (diff)
fixed mod property names and added unit test for xm
Diffstat (limited to 'taglib/xm')
-rw-r--r--taglib/xm/xmfile.cpp2
-rw-r--r--taglib/xm/xmproperties.cpp12
-rw-r--r--taglib/xm/xmproperties.h4
3 files changed, 9 insertions, 9 deletions
diff --git a/taglib/xm/xmfile.cpp b/taglib/xm/xmfile.cpp
index 57b6be7b..5efc2204 100644
--- a/taglib/xm/xmfile.cpp
+++ b/taglib/xm/xmfile.cpp
@@ -101,7 +101,7 @@ void XM::File::read(bool)
READ_STRING(d->tag.setTrackerName, 20);
READ_U16L(d->properties.setVersion);
READ_U32L_AS(headerSize);
- READ_U16L(d->properties.setSampleLength);
+ READ_U16L(d->properties.setTableLength);
READ_U16L(d->properties.setRestartPosition);
READ_U16L(d->properties.setChannels);
READ_U16L_AS(patternCount);
diff --git a/taglib/xm/xmproperties.cpp b/taglib/xm/xmproperties.cpp
index bde96049..b7466f88 100644
--- a/taglib/xm/xmproperties.cpp
+++ b/taglib/xm/xmproperties.cpp
@@ -28,7 +28,7 @@ class XM::Properties::PropertiesPrivate
{
public:
PropertiesPrivate() :
- sampleLength(0),
+ tableLength(0),
channels(0),
version(0),
restartPosition(0),
@@ -40,7 +40,7 @@ public:
{
}
- ushort sampleLength;
+ ushort tableLength;
int channels;
ushort version;
ushort restartPosition;
@@ -82,9 +82,9 @@ int XM::Properties::channels() const
return d->channels;
}
-ushort XM::Properties::sampleLength() const
+ushort XM::Properties::tableLength() const
{
- return d->sampleLength;
+ return d->tableLength;
}
ushort XM::Properties::version() const
@@ -122,9 +122,9 @@ ushort XM::Properties::bpmSpeed() const
return d->bpmSpeed;
}
-void XM::Properties::setSampleLength(int sampleLength)
+void XM::Properties::setTableLength(ushort tableLength)
{
- d->sampleLength = sampleLength;
+ d->tableLength = tableLength;
}
void XM::Properties::setChannels(int channels)
diff --git a/taglib/xm/xmproperties.h b/taglib/xm/xmproperties.h
index 94be5b40..208e166c 100644
--- a/taglib/xm/xmproperties.h
+++ b/taglib/xm/xmproperties.h
@@ -39,7 +39,7 @@ namespace TagLib {
int sampleRate() const;
int channels() const;
- ushort sampleLength() const;
+ ushort tableLength() const;
ushort version() const;
ushort restartPosition() const;
ushort patternCount() const;
@@ -49,7 +49,7 @@ namespace TagLib {
ushort bpmSpeed() const;
protected:
- void setSampleLength(int sampleLength);
+ void setTableLength(ushort tableLength);
void setChannels(int channels);
void setVersion(ushort version);