OLD | NEW |
---|---|
1 syntax = "proto2"; | 1 syntax = "proto2"; |
2 option optimize_for = LITE_RUNTIME; | 2 option optimize_for = LITE_RUNTIME; |
3 package webrtc.audioproc; | 3 package webrtc.audioproc; |
4 | 4 |
5 // Contains the format of input/output/reverse audio. An Init message is added | |
6 // when any of the fields is changed. | |
5 message Init { | 7 message Init { |
6 optional int32 sample_rate = 1; | 8 optional int32 sample_rate = 1; |
7 optional int32 device_sample_rate = 2 [deprecated=true]; | 9 optional int32 device_sample_rate = 2 [deprecated=true]; |
8 optional int32 num_input_channels = 3; | 10 optional int32 num_input_channels = 3; |
9 optional int32 num_output_channels = 4; | 11 optional int32 num_output_channels = 4; |
10 optional int32 num_reverse_channels = 5; | 12 optional int32 num_reverse_channels = 5; |
11 optional int32 reverse_sample_rate = 6; | 13 optional int32 reverse_sample_rate = 6; |
12 optional int32 output_sample_rate = 7; | 14 optional int32 output_sample_rate = 7; |
13 } | 15 } |
14 | 16 |
(...skipping 17 matching lines...) Expand all Loading... | |
32 optional sint32 drift = 4; | 34 optional sint32 drift = 4; |
33 optional int32 level = 5; | 35 optional int32 level = 5; |
34 optional bool keypress = 6; | 36 optional bool keypress = 6; |
35 | 37 |
36 // float deinterleaved data, where each repeated element points to a single | 38 // float deinterleaved data, where each repeated element points to a single |
37 // channel buffer of data. | 39 // channel buffer of data. |
38 repeated bytes input_channel = 7; | 40 repeated bytes input_channel = 7; |
39 repeated bytes output_channel = 8; | 41 repeated bytes output_channel = 8; |
40 } | 42 } |
41 | 43 |
44 // Contains the configurations of various APM component. A Config message is | |
45 // added when any of the fields is changed. | |
46 message Config { | |
Andrew MacDonald
2015/10/01 04:37:45
FYI: I just wanted to mention that Michael and I b
minyue-webrtc
2015/10/01 20:18:26
Acknowledged.
| |
47 // Next field number 17. | |
48 // Acoustic echo canceler. | |
49 optional bool aec_enabled = 1; | |
50 optional bool aec_delay_agnostic = 2; | |
51 optional bool aec_drift_compensation = 3; | |
52 optional bool aec_extended_filter = 4; | |
53 optional int32 aec_suppression_level = 5; | |
54 // Mobile AEC. | |
55 optional bool aecm_enabled = 6; | |
56 optional bool aecm_comfort_noise = 7; | |
57 optional int32 aecm_routing_mode = 8; | |
58 // Automatic gain controller. | |
59 optional bool agc_enabled = 9; | |
60 optional bool agc_experiment = 10; | |
61 optional int32 agc_mode = 11; | |
62 optional bool agc_limiter = 12; | |
63 // High pass filter. | |
64 optional bool hpf_enabled = 13; | |
65 // Noise suppression. | |
66 optional bool ns_enabled = 14; | |
67 optional bool ns_experiment = 15; | |
68 optional int32 ns_level = 16; | |
69 } | |
70 | |
42 message Event { | 71 message Event { |
43 enum Type { | 72 enum Type { |
44 INIT = 0; | 73 INIT = 0; |
45 REVERSE_STREAM = 1; | 74 REVERSE_STREAM = 1; |
46 STREAM = 2; | 75 STREAM = 2; |
76 CONFIG = 3; | |
47 } | 77 } |
48 | 78 |
49 required Type type = 1; | 79 required Type type = 1; |
minyue-webrtc
2015/10/01 05:10:21
I need to mention that adding CONFIG makes Type no
ivoc
2015/10/01 08:55:39
First off, I'm not sure how important forward comp
Andrew MacDonald
2015/10/01 17:35:21
Thanks for the explanation Ivo, interesting!
Miny
minyue-webrtc
2015/10/01 20:18:26
Yes, adding it in enum is very simple, my concern
| |
50 | 80 |
51 optional Init init = 2; | 81 optional Init init = 2; |
52 optional ReverseStream reverse_stream = 3; | 82 optional ReverseStream reverse_stream = 3; |
53 optional Stream stream = 4; | 83 optional Stream stream = 4; |
84 optional Config config = 5; | |
54 } | 85 } |
OLD | NEW |