@@ -98,8 +98,8 @@ Result DataConversionFlowGraph::configure(AudioStream *sourceStream, AudioStream
9898 ? sourceStream->getFramesPerBurst ()
9999 : sourceStream->getFramesPerCallback ();
100100 // Source
101- // If OUTPUT and using a callback then call back to the app using a SourceCaller.
102- // If INPUT and NOT using a callback then read from the child stream using a SourceCaller.
101+ // IF OUTPUT and using a callback then call back to the app using a SourceCaller.
102+ // OR IF INPUT and NOT using a callback then read from the child stream using a SourceCaller.
103103 if ((sourceStream->getCallback () != nullptr && isOutput)
104104 || (sourceStream->getCallback () == nullptr && isInput)) {
105105 switch (sourceFormat) {
@@ -118,8 +118,8 @@ Result DataConversionFlowGraph::configure(AudioStream *sourceStream, AudioStream
118118 mSourceCaller ->setStream (sourceStream);
119119 lastOutput = &mSourceCaller ->output ;
120120 } else {
121- // If OUTPUT and NOT using a callback then write to the child stream using a BlockWriter.
122- // If INPUT and using a callback then write to the app using a BlockWriter.
121+ // IF OUTPUT and NOT using a callback then write to the child stream using a BlockWriter.
122+ // OR IF INPUT and using a callback then write to the app using a BlockWriter.
123123 switch (sourceFormat) {
124124 case AudioFormat::Float:
125125 mSource = std::make_unique<SourceFloat>(sourceChannelCount);
@@ -200,8 +200,6 @@ Result DataConversionFlowGraph::configure(AudioStream *sourceStream, AudioStream
200200 }
201201 lastOutput->connect (&mSink ->input );
202202
203- mFramePosition = 0 ;
204-
205203 return Result::OK;
206204}
207205
@@ -210,7 +208,6 @@ int32_t DataConversionFlowGraph::read(void *buffer, int32_t numFrames, int64_t t
210208 mSourceCaller ->setTimeoutNanos (timeoutNanos);
211209 }
212210 int32_t numRead = mSink ->read (buffer, numFrames);
213- mFramePosition += numRead;
214211 return numRead;
215212}
216213
@@ -221,7 +218,6 @@ int32_t DataConversionFlowGraph::write(void *inputBuffer, int32_t numFrames) {
221218 while (true ) {
222219 // Pull and read some data in app format into a small buffer.
223220 int32_t framesRead = mSink ->read (mAppBuffer .get (), flowgraph::kDefaultBufferSize );
224- mFramePosition += framesRead;
225221 if (framesRead <= 0 ) break ;
226222 // Write to a block adapter, which will call the destination whenever it has enough data.
227223 int32_t bytesRead = mBlockWriter .write (mAppBuffer .get (),
0 commit comments