| 199 | } |
| 200 | |
| 201 | std::shared_ptr<Data> NetMessageMaker::MakeAudioFrameMsg(const std::shared_ptr<Data>& data, |
| 202 | int samples, int channels, int bits, int frame_size) { |
| 203 | auto msg = std::make_shared<Message>(); |
| 204 | msg->set_type(tc::kAudioFrame); |
| 205 | auto frame = new AudioFrame(); |
| 206 | frame->set_data(data->CStr(), data->Size()); |
| 207 | frame->set_samples(samples); |
| 208 | frame->set_channels(channels); |
| 209 | frame->set_bits(bits); |
| 210 | frame->set_frame_size(frame_size); |
| 211 | msg->set_allocated_audio_frame(frame); |
| 212 | return ProtoAsData(msg); |
| 213 | } |
| 214 | |
| 215 | std::shared_ptr<Data> NetMessageMaker::MakeCursorInfoSyncMsg(uint32_t x, uint32_t y, uint32_t hotspot_x, uint32_t hotspot_y, |
| 216 | uint32_t width, uint32_t height, bool visable, |
nothing calls this directly
no outgoing calls
no test coverage detected