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; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... | |
40 BYTES_PER_SAMPLE_2 = 2; | 40 BYTES_PER_SAMPLE_2 = 2; |
41 } | 41 } |
42 | 42 |
43 optional BytesPerSample bytes_per_sample = 5 | 43 optional BytesPerSample bytes_per_sample = 5 |
44 [default = BYTES_PER_SAMPLE_INVALID]; | 44 [default = BYTES_PER_SAMPLE_INVALID]; |
45 | 45 |
46 enum Channels { | 46 enum Channels { |
47 CHANNELS_INVALID = -1; | 47 CHANNELS_INVALID = -1; |
48 CHANNELS_MONO = 1; | 48 CHANNELS_MONO = 1; |
49 CHANNELS_STEREO = 2; | 49 CHANNELS_STEREO = 2; |
50 CHANNELS_SURROUND = 3; | |
tommi (sloooow) - chröme
2017/06/08 17:58:07
what about 2.1?
Hzj_jie
2017/06/08 19:07:48
We do not support 2.1 for now: all 3 channels layo
| |
51 CHANNELS_4_0 = 4; | |
52 CHANNELS_4_1 = 5; | |
53 CHANNELS_5_1 = 6; | |
54 CHANNELS_6_1 = 7; | |
55 CHANNELS_7_1 = 8; | |
50 } | 56 } |
51 | 57 |
52 optional Channels channels = 6 [default = CHANNELS_INVALID]; | 58 optional Channels channels = 6 [default = CHANNELS_INVALID]; |
53 } | 59 } |
54 | 60 |
OLD | NEW |