MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / start_stream

Function start_stream

src/board_controller/board_controller.cpp:351–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351int start_stream (int buffer_size, const char *streamer_params, int board_id,
352 const char *json_brainflow_input_params)
353{
354 std::lock_guard<std::mutex> lock (mutex);
355
356 std::pair<int, struct BrainFlowInputParams> key;
357 int res = check_board_session (board_id, json_brainflow_input_params, key, false);
358 if (res != (int)BrainFlowExitCodes::STATUS_OK)
359 {
360 return res;
361 }
362 auto board_it = boards.find (key);
363 return board_it->second->start_stream (buffer_size, streamer_params);
364}
365
366int stop_stream (int board_id, const char *json_brainflow_input_params)
367{

Callers 2

start_streamMethod · 0.50
start_streamMethod · 0.50

Calls 2

check_board_sessionFunction · 0.85
start_streamMethod · 0.65

Tested by

no test coverage detected