174 | | // /** |
---|
175 | | // * @brief Notify the StreamProcessor that frames were written |
---|
176 | | // * |
---|
177 | | // * This notifies the StreamProcessor of the fact that frames were written to the internal |
---|
178 | | // * buffer. This is for framecounter & timestamp bookkeeping. |
---|
179 | | // * |
---|
180 | | // * @param nbframes the number of frames that are written to the internal buffers |
---|
181 | | // * @param ts the new timestamp of the 'tail' of the buffer, i.e. the last sample |
---|
182 | | // * present in the buffer. |
---|
183 | | // * @return true if successful |
---|
184 | | // */ |
---|
185 | | // bool StreamProcessor::putFrames(unsigned int nbframes, int64_t ts) { |
---|
186 | | // |
---|
187 | | // debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "Putting %d frames for %llu into frame buffer...\n", nbframes,ts); |
---|
188 | | // // m_data_buffer->incrementFrameCounter(nbframes, ts); |
---|
189 | | // return true; |
---|
190 | | // } |
---|
191 | | |
---|
192 | | // /** |
---|
193 | | // * @brief Notify the StreamProcessor that frames were read |
---|
194 | | // * |
---|
195 | | // * This notifies the StreamProcessor of the fact that frames were read from the internal |
---|
196 | | // * buffer. This is for framecounter & timestamp bookkeeping. |
---|
197 | | // * |
---|
198 | | // * @param nbframes the number of frames that are read from the internal buffers |
---|
199 | | // * @return true if successful |
---|
200 | | // */ |
---|
201 | | // bool StreamProcessor::getFrames(unsigned int nbframes) { |
---|
202 | | // |
---|
203 | | // debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "Getting %d frames from frame buffer...\n", nbframes); |
---|
204 | | // // m_data_buffer->decrementFrameCounter(nbframes); |
---|
205 | | // return true; |
---|
206 | | // } |
---|
| 176 | int StreamProcessor::getBufferFill() { |
---|
| 177 | // return m_data_buffer->getFrameCounter(); |
---|
| 178 | return m_data_buffer->getBufferFill(); |
---|
| 179 | } |
---|