| 185 | } |
| 186 | |
| 187 | void raw_decoder::push_data(std::span<std::span<const uint8_t>> data, uint64_t frame_index, bool partial) |
| 188 | { |
| 189 | if (frame_index != current_frame) |
| 190 | { |
| 191 | input_pos = (uint8_t *)input[0].map(); |
| 192 | current_frame = frame_index; |
| 193 | } |
| 194 | for (const auto & item: data) |
| 195 | { |
| 196 | memcpy(input_pos, item.data(), item.size_bytes()); |
| 197 | input_pos += item.size(); |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | void raw_decoder::frame_completed( |
| 202 | const from_headset::feedback & feedback, |
no test coverage detected