Searched refs:gce_audio_message (Results 1 – 9 of 9) sorted by relevance
/device/google/cuttlefish_common/host/commands/record_audio/ |
D | main.cc | 56 gce_audio_message writer_hdr; in main() 81 CHECK_GE(static_cast<size_t>(res), sizeof(gce_audio_message)); in main() 83 gce_audio_message hdr; in main() 84 std::memcpy(&hdr, buffer, sizeof(gce_audio_message)); in main() 86 if (hdr.message_type != gce_audio_message::DATA_SAMPLES) { in main() 90 const size_t payloadSize = res - sizeof(gce_audio_message); in main() 131 writer->Append(&buffer[sizeof(gce_audio_message)], payloadSize); in main()
|
/device/google/cuttlefish_common/common/vsoc/lib/ |
D | vsoc_audio_message.h | 38 struct gce_audio_message { struct 82 gce_audio_message() : in gce_audio_message() argument 83 total_size(sizeof(gce_audio_message)), in gce_audio_message() 84 header_size(sizeof(gce_audio_message)), in gce_audio_message()
|
/device/google/cuttlefish_common/host/frontend/stream_audio/ |
D | main.cpp | 126 gce_audio_message header; 155 gce_audio_message GetHeaderFromBuffer(const std::vector<char>& buffer) const { in GetHeaderFromBuffer() 156 gce_audio_message new_header{}; in GetHeaderFromBuffer() 166 const auto payload_size = buffer.size() - sizeof(gce_audio_message); in GetPayloadFromBuffer() 169 sizeof(gce_audio_message); in GetPayloadFromBuffer() 178 if (header.message_type == gce_audio_message::DATA_SAMPLES) { in NextAudioMessage() 186 const gce_audio_message& new_header) const { in CheckAudioConfigurationIsSame() 198 gce_audio_message header_{};
|
/device/google/cuttlefish_common/guest/hals/audio/legacy/ |
D | vsoc_audio_output_stream.h | 39 gce_audio_message GetStreamDescriptor( in GetStreamDescriptor() 40 gce_audio_message::message_t message_type) const { in GetStreamDescriptor() 41 gce_audio_message rval = message_header_; in GetStreamDescriptor() 303 gce_audio_message message_header_;
|
D | vsoc_audio.cpp | 116 stream_number, gce_audio_message::OPEN_INPUT_STREAM), MSG_DONTWAIT); in OpenInputStream() 125 gce_audio_message descriptor; in CloseInputStream() 133 it->first, gce_audio_message::CLOSE_INPUT_STREAM); in CloseInputStream() 163 gce_audio_message::OPEN_OUTPUT_STREAM), MSG_DONTWAIT); in OpenOutputStream() 171 gce_audio_message close; in CloseOutputStream() 176 gce_audio_message::CLOSE_OUTPUT_STREAM); in CloseOutputStream() 224 const gce_audio_message& stream_info, int flags) { in SendStreamUpdate() 227 msg_iov[0].iov_base = const_cast<gce_audio_message*>(&stream_info); in SendStreamUpdate() 228 msg_iov[0].iov_len = sizeof(gce_audio_message); in SendStreamUpdate()
|
D | vsoc_audio_input_stream.h | 43 gce_audio_message GetStreamDescriptor( 44 uint32_t stream_number, gce_audio_message::message_t event);
|
D | vsoc_audio_input_stream.cpp | 91 gce_audio_message GceAudioInputStream::GetStreamDescriptor( in GetStreamDescriptor() 92 uint32_t stream_number, gce_audio_message::message_t event) { in GetStreamDescriptor() 93 gce_audio_message rval; in GetStreamDescriptor()
|
D | vsoc_audio_output_stream.cpp | 197 message_header_.message_type = gce_audio_message::DATA_SAMPLES; in Write() 219 if (length > gce_audio_message::kMaxAudioFrameLen) { in Write() 220 transmitted_frame_size = gce_audio_message::kMaxAudioFrameLen; in Write()
|
D | vsoc_audio.h | 64 const gce_audio_message& stream_info, int flags);
|