- Code: Select all
long framesProcessed = DiracProcess(&buffer, kBufferFrameSize, dirac);
I am processing an audio stream, which means that framesProcessed can drop to zero in the middle of the stream (no more audio data for now) and I want to continue later when I have another batch of data ready. The problem is that Dirac seems to remember that it already processed all available data and does not call the data reading callback anymore. What am I doing wrong?
(I was able to get around the issue by not processing the data until I can be sure that Dirac won’t consume all the available data, but that feels like a hack.)
