|
Switch audio synchronization from sleep() based to select() based.
Uses select() to efficiently wait for data from the renderer with a
timeout instead of using sleep() or always assuming the renderer
is ready.
Fixes glitching and / or CPU hogging when the renderer isn't ready.
BUG= 179058, 180841, 260772, 269672
,
TEST=Swap from 44kHz to 16kHz html5 playback, ensure glitch free.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230515
Total comments: 28
Total comments: 13
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+191 lines, -370 lines) |
Patch |
|
M |
content/browser/renderer_host/media/audio_renderer_host.cc
|
View
|
1
2
|
3 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/media/audio_sync_reader.h
|
View
|
1
2
|
3 chunks |
+13 lines, -8 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/media/audio_sync_reader.cc
|
View
|
1
2
3
4
|
6 chunks |
+82 lines, -97 lines |
0 comments
|
Download
|
|
M |
content/renderer/pepper/pepper_audio_input_host.cc
|
View
|
1
|
2 chunks |
+1 line, -8 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_device_thread.h
|
View
|
1
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_device_thread.cc
|
View
|
1
2
|
6 chunks |
+29 lines, -10 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_input_device.cc
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_output_controller.h
|
View
|
1
2
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_output_controller.cc
|
View
|
1
2
|
3 chunks |
+6 lines, -22 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_output_controller_unittest.cc
|
View
|
1
2
|
3 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_output_device.cc
|
View
|
1
2
|
5 chunks |
+14 lines, -37 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_output_device_unittest.cc
|
View
|
1
2
|
3 chunks |
+2 lines, -9 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_parameters.h
|
View
|
1
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_parameters.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
D |
media/audio/shared_memory_util.h
|
View
|
1
|
1 chunk |
+0 lines, -39 lines |
0 comments
|
Download
|
|
D |
media/audio/shared_memory_util.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -72 lines |
0 comments
|
Download
|
|
M |
media/shared_memory_support.gypi
|
View
|
1
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/audio_input_resource.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -9 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/ppb_audio_proxy.cc
|
View
|
1
|
3 chunks |
+2 lines, -16 lines |
0 comments
|
Download
|
|
M |
ppapi/shared_impl/ppb_audio_shared.cc
|
View
|
1
|
4 chunks |
+8 lines, -16 lines |
0 comments
|
Download
|
Total messages: 32 (0 generated)
|