OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Protocol for audio messages. | 5 // Protocol for audio messages. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
| 9 option optimize_for = LITE_RUNTIME; |
| 10 |
9 package remoting; | 11 package remoting; |
10 | 12 |
11 message AudioPacket { | 13 message AudioPacket { |
12 optional int32 timestamp = 1 [default = 0]; | 14 optional int32 timestamp = 1 [default = 0]; |
13 | 15 |
14 // Packets with raw data must have exactly one data field. | 16 // Packets with raw data must have exactly one data field. |
15 // For those packets, samples are signed and represented using little endian. | 17 // For those packets, samples are signed and represented using little endian. |
16 // Some encoders (eg. Speex) may add multiple data fields to separate encoded | 18 // Some encoders (eg. Speex) may add multiple data fields to separate encoded |
17 // frames. | 19 // frames. |
18 repeated bytes data = 2; | 20 repeated bytes data = 2; |
(...skipping 25 matching lines...) Expand all Loading... |
44 | 46 |
45 enum Channels { | 47 enum Channels { |
46 CHANNELS_INVALID = -1; | 48 CHANNELS_INVALID = -1; |
47 CHANNELS_MONO = 1; | 49 CHANNELS_MONO = 1; |
48 CHANNELS_STEREO = 2; | 50 CHANNELS_STEREO = 2; |
49 } | 51 } |
50 | 52 |
51 optional Channels channels = 6 [default = CHANNELS_INVALID]; | 53 optional Channels channels = 6 [default = CHANNELS_INVALID]; |
52 } | 54 } |
53 | 55 |
OLD | NEW |