aboutsummaryrefslogtreecommitdiff
path: root/src/flowgraph/SinkI16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/flowgraph/SinkI16.cpp')
-rw-r--r--src/flowgraph/SinkI16.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/flowgraph/SinkI16.cpp b/src/flowgraph/SinkI16.cpp
index a5904e82..da7fd6b7 100644
--- a/src/flowgraph/SinkI16.cpp
+++ b/src/flowgraph/SinkI16.cpp
@@ -28,14 +28,14 @@ using namespace flowgraph;
SinkI16::SinkI16(int32_t channelCount)
: FlowGraphSink(channelCount) {}
-int32_t SinkI16::read(int64_t framePosition, void *data, int32_t numFrames) {
+int32_t SinkI16::read(void *data, int32_t numFrames) {
int16_t *shortData = (int16_t *) data;
const int32_t channelCount = input.getSamplesPerFrame();
int32_t framesLeft = numFrames;
while (framesLeft > 0) {
// Run the graph and pull data through the input port.
- int32_t framesRead = pullData(framePosition, framesLeft);
+ int32_t framesRead = pullData(framesLeft);
if (framesRead <= 0) {
break;
}
@@ -52,7 +52,6 @@ int32_t SinkI16::read(int64_t framePosition, void *data, int32_t numFrames) {
}
#endif
framesLeft -= framesRead;
- framePosition += framesRead;
}
return numFrames - framesLeft;
}