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. | |
Andrew MacDonald
2015/10/02 19:04:01
s/is changed/are 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 { | |
47 // Next field number 17. | |
48 // Acoustic echo canceler. | |
49 optional bool aec_enabled = 1; | |
50 optional bool aec_delay_agnostic_enabled = 2; | |
51 optional bool aec_drift_compensation_enabled = 3; | |
52 optional bool aec_extended_filter_enabled = 4; | |
53 optional int32 aec_suppression_level = 5; | |
54 // Mobile AEC. | |
55 optional bool aecm_enabled = 6; | |
56 optional bool aecm_comfort_noise_enabled = 7; | |
57 optional int32 aecm_routing_mode = 8; | |
58 // Automatic gain controller. | |
59 optional bool agc_enabled = 9; | |
60 optional bool agc_experiment_enabled = 10; | |
Andrew MacDonald
2015/10/02 19:04:02
Similarly, noise_robust_agc_enabled.
Or something
turajs
2015/10/02 19:16:36
I'm normally bad with naming. Don't have a better
aluebs-webrtc
2015/10/02 19:16:37
I like your suggestion.
minyue-webrtc
2015/10/02 19:59:59
Thanks for your comments. I'd take Andrew's sugges
Andrew MacDonald
2015/10/02 21:41:56
I get why you want to prefix with agc for consiste
| |
61 optional int32 agc_mode = 11; | |
62 optional bool agc_limiter_enabled = 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_enabled = 15; | |
Andrew MacDonald
2015/10/02 19:04:01
Could you instead call this transient_suppression_
minyue-webrtc
2015/10/02 19:59:59
Nice, I'd even put it at the end as a parallel to
| |
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; | |
77 UNKNOWN_EVENT = 4; | |
47 } | 78 } |
48 | 79 |
49 required Type type = 1; | 80 required Type type = 1; |
50 | 81 |
51 optional Init init = 2; | 82 optional Init init = 2; |
52 optional ReverseStream reverse_stream = 3; | 83 optional ReverseStream reverse_stream = 3; |
53 optional Stream stream = 4; | 84 optional Stream stream = 4; |
85 optional Config config = 5; | |
54 } | 86 } |
OLD | NEW |