Skip to content

Commit aa4af49

Browse files
committed
Added accessors for position and recording position
Added accessors to get the current position as double.
1 parent fba2ae1 commit aa4af49

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

maximilian.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,13 @@ void maxiSample::getLength() {
10861086
length=myDataSize*0.5;
10871087
}
10881088

1089+
double maxiSample::getPosition() {
1090+
return position;
1091+
}
1092+
1093+
double maxiSample::getRecordPosition() {
1094+
return recordPosition;
1095+
}
10891096
void maxiSample::setLength(unsigned long numSamples) {
10901097
cout << "Length: " << numSamples << endl;
10911098
short *newData = (short*) malloc(sizeof(short) * numSamples);

maximilian.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ class maxiSample {
222222
int mySampleRate;
223223
long length;
224224
void getLength();
225+
double getPosition();
226+
double getRecordPosition();
225227
void setLength(unsigned long numSamples);
226228
short myBitsPerSample;
227229

0 commit comments

Comments
 (0)