Commit c2db119
committed
AudioBufferProvider comments and cleanup
Add comments about which methods implement the AudioBufferProvider interface.
Simplified the definition of kInvalidPts. <stdint.h> is very hard to work
with, there seems to be no way to use it reliably to get INT64_MAX without
having a separate source file, which is ugly because it means kInvalidPts
is not a compile-time constant. So I just deleted AudioBufferProvider.cpp
and used a hard-coded constant instead.
Added a default constructor for Buffer so that the fields aren't random
(especially .raw which is used to determine if the buffer is valid).
Make the pts for getNextBuffer default to kInvalidPTS so code that
doesn't need a pts doesn't have to specify a value.
Rename the parameter to AudioMixer::setBufferProvider to make it clearer.
Change-Id: I87e7290884d4ed975b019f62d1ab6ae2bc5065a51 parent be3835c commit c2db119
File tree
6 files changed
+31
-53
lines changed- services/audioflinger
6 files changed
+31
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | | - | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2891 | 2891 | | |
2892 | 2892 | | |
2893 | 2893 | | |
2894 | | - | |
2895 | | - | |
| 2894 | + | |
2896 | 2895 | | |
2897 | 2896 | | |
2898 | 2897 | | |
| |||
3398 | 3397 | | |
3399 | 3398 | | |
3400 | 3399 | | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
3401 | 3403 | | |
3402 | 3404 | | |
3403 | 3405 | | |
3404 | 3406 | | |
3405 | | - | |
| 3407 | + | |
3406 | 3408 | | |
3407 | 3409 | | |
3408 | 3410 | | |
| |||
3548 | 3550 | | |
3549 | 3551 | | |
3550 | 3552 | | |
| 3553 | + | |
3551 | 3554 | | |
3552 | 3555 | | |
3553 | 3556 | | |
| |||
4096 | 4099 | | |
4097 | 4100 | | |
4098 | 4101 | | |
| 4102 | + | |
4099 | 4103 | | |
4100 | 4104 | | |
4101 | 4105 | | |
| |||
4181 | 4185 | | |
4182 | 4186 | | |
4183 | 4187 | | |
| 4188 | + | |
4184 | 4189 | | |
4185 | 4190 | | |
4186 | 4191 | | |
| |||
4868 | 4873 | | |
4869 | 4874 | | |
4870 | 4875 | | |
4871 | | - | |
4872 | | - | |
| 4876 | + | |
4873 | 4877 | | |
4874 | 4878 | | |
4875 | 4879 | | |
| |||
5147 | 5151 | | |
5148 | 5152 | | |
5149 | 5153 | | |
| 5154 | + | |
5150 | 5155 | | |
5151 | 5156 | | |
5152 | 5157 | | |
| |||
5185 | 5190 | | |
5186 | 5191 | | |
5187 | 5192 | | |
| 5193 | + | |
5188 | 5194 | | |
5189 | 5195 | | |
5190 | 5196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
351 | | - | |
| 349 | + | |
| 350 | + | |
352 | 351 | | |
353 | 352 | | |
354 | 353 | | |
| |||
634 | 633 | | |
635 | 634 | | |
636 | 635 | | |
637 | | - | |
638 | | - | |
639 | | - | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
706 | | - | |
707 | | - | |
| 706 | + | |
| 707 | + | |
708 | 708 | | |
| 709 | + | |
709 | 710 | | |
710 | 711 | | |
711 | 712 | | |
| |||
1067 | 1068 | | |
1068 | 1069 | | |
1069 | 1070 | | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1073 | 1074 | | |
1074 | 1075 | | |
1075 | 1076 | | |
| |||
1106 | 1107 | | |
1107 | 1108 | | |
1108 | 1109 | | |
1109 | | - | |
1110 | | - | |
| 1110 | + | |
| 1111 | + | |
1111 | 1112 | | |
| 1113 | + | |
1112 | 1114 | | |
1113 | 1115 | | |
1114 | 1116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
0 commit comments