| 349 | } |
| 350 | |
| 351 | int 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 | |
| 366 | int stop_stream (int board_id, const char *json_brainflow_input_params) |
| 367 | { |
no test coverage detected