| 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 | |
| 11 package remoting; | 9 package remoting; |
| 12 | 10 |
| 13 message AudioPacket { | 11 message AudioPacket { |
| 14 optional int32 timestamp = 1 [default = 0]; | 12 optional int32 timestamp = 1 [default = 0]; |
| 15 | 13 |
| 16 // Packets with raw data must have exactly one data field. | 14 // Packets with raw data must have exactly one data field. |
| 17 // For those packets, samples are signed and represented using little endian. | 15 // For those packets, samples are signed and represented using little endian. |
| 18 // Some encoders (eg. Speex) may add multiple data fields to separate encoded | 16 // Some encoders (eg. Speex) may add multiple data fields to separate encoded |
| 19 // frames. | 17 // frames. |
| 20 repeated bytes data = 2; | 18 repeated bytes data = 2; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 46 | 44 |
| 47 enum Channels { | 45 enum Channels { |
| 48 CHANNELS_INVALID = -1; | 46 CHANNELS_INVALID = -1; |
| 49 CHANNELS_MONO = 1; | 47 CHANNELS_MONO = 1; |
| 50 CHANNELS_STEREO = 2; | 48 CHANNELS_STEREO = 2; |
| 51 } | 49 } |
| 52 | 50 |
| 53 optional Channels channels = 6 [default = CHANNELS_INVALID]; | 51 optional Channels channels = 6 [default = CHANNELS_INVALID]; |
| 54 } | 52 } |
| 55 | 53 |
| OLD | NEW |