-
Notifications
You must be signed in to change notification settings - Fork 602
Open
Description
Here is the code:
prost_build::Config::new()
.out_dir("src/streamer")
.compile_protos(&["src/proto/message.proto"], &["src/proto"])
.expect("Failed to compile protobuf files");and the .proto file:
syntax = "proto3";
message AudioPacketMessage {
bytes buffer = 1;
uint32 sample_rate = 2;
uint32 channel_count = 3;
uint32 audio_format = 4;
}
message AudioPacketMessageOrdered {
uint32 sequence_number = 1;
AudioPacketMessage audio_packet = 2;
}
message ConnectMessage {}
message MessageWrapper {
oneof payload {
AudioPacketMessageOrdered audio_packet = 1;
ConnectMessage connect = 2;
}
}let me know if you need more information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels