mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-27 23:49:03 +00:00
Make sound data @as_ptr to avoid copying data
This commit is contained in:
parent
4b670111a0
commit
a0a1907716
@ -921,13 +921,13 @@ channel PlaybackChannel : BaseChannel {
|
||||
server:
|
||||
message {
|
||||
uint32 time;
|
||||
uint8 data[] @end;
|
||||
uint8 data[] @end @as_ptr(data_size);
|
||||
} @ctype(SpiceMsgPlaybackPacket) data = 101;
|
||||
|
||||
message {
|
||||
uint32 time;
|
||||
audio_data_mode mode;
|
||||
uint8 data[] @end;
|
||||
uint8 data[] @end @as_ptr(data_size);
|
||||
} mode;
|
||||
|
||||
message {
|
||||
@ -952,13 +952,13 @@ channel RecordChannel : BaseChannel {
|
||||
client:
|
||||
message {
|
||||
uint32 time;
|
||||
uint8 data[] @end @nomarshal;
|
||||
uint8 data[] @end @nomarshal @as_ptr(data_size);
|
||||
} @ctype(SpiceMsgcRecordPacket) data = 101;
|
||||
|
||||
message {
|
||||
uint32 time;
|
||||
audio_data_mode mode;
|
||||
uint8 data[] @end;
|
||||
uint8 data[] @end @as_ptr(data_size);
|
||||
} mode;
|
||||
|
||||
message {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user