Make sound data @as_ptr to avoid copying data

This commit is contained in:
Alexander Larsson 2010-06-18 17:12:31 +02:00 committed by Marc-André Lureau
parent 4b670111a0
commit a0a1907716

View File

@ -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 {