MCPcopy Create free account
hub / github.com/bbc/audiowaveform / process

Method process

test/Mp3AudioFileReaderTest.cpp:257–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255 }
256
257 virtual bool process(
258 const short* input_buffer,
259 int input_frame_count)
260 {
261 if (start_frame_ != -1) {
262 return true;
263 }
264
265 for (int i = 0; i < input_frame_count * channels_; ++i) {
266 if (input_buffer[i] != 0) {
267 start_frame_ = frame_count_ + i;
268 break;
269 }
270 }
271
272 frame_count_ += input_frame_count;
273
274 return true;
275 }
276
277 virtual void done()
278 {

Callers 2

TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected