|
Moved AudioUtil static functions:
GetAudioHardwareSampleRate
GetAudioInputHardwareSampleRate
GetAudioHardwareBufferSize
GetAudioInputHardwareChannelLayout
to AudioManager interfaces:
GetDefaultOutputStreamParameters()
GetDefaultInputStreamParameters(const std::string& device_id)
By doing this, we remove the messy ifdef statements in AudioUtil, allow getting the native sample rate for Pulse, each AudioManager is responsible for providing the optimal audio params to achieve the best audio performance, for example, cras can raise the buffer size to reduce CPU consumption without affecting other Linux products.
BUG= 178142, 137326, 120319
TEST=media_unittests, content_unittests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186180
Total comments: 17
Total comments: 15
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+493 lines, -340 lines) |
Patch |
|
M |
content/browser/renderer_host/media/audio_input_device_manager.cc
|
View
|
1
|
2 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/media/media_stream_manager.cc
|
View
|
2
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_message_filter.cc
|
View
|
1
2
3
4
|
3 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/webrtc_audio_device_unittest.cc
|
View
|
1
2
3
|
6 chunks |
+17 lines, -11 lines |
0 comments
|
Download
|
|
M |
media/audio/android/audio_manager_android.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/audio/android/audio_manager_android.cc
|
View
|
1
2
3
|
3 chunks |
+42 lines, -14 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_input_volume_unittest.cc
|
View
|
1
|
1 chunk |
+3 lines, -22 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_low_latency_input_output_unittest.cc
|
View
|
1
2
|
4 chunks |
+11 lines, -17 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_manager.h
|
View
|
1
2
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_manager_base.h
|
View
|
1
2
3
4
|
2 chunks |
+12 lines, -9 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_manager_base.cc
|
View
|
1
2
3
|
3 chunks |
+11 lines, -17 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_output_proxy_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_util.h
|
View
|
|
1 chunk |
+0 lines, -16 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_util.cc
|
View
|
|
1 chunk |
+0 lines, -118 lines |
0 comments
|
Download
|
|
M |
media/audio/cras/audio_manager_cras.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/audio/cras/audio_manager_cras.cc
|
View
|
1
2
|
4 chunks |
+35 lines, -10 lines |
0 comments
|
Download
|
|
M |
media/audio/ios/audio_manager_ios.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/audio/ios/audio_manager_ios.mm
|
View
|
1
2
3
|
3 chunks |
+30 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/audio/linux/audio_manager_linux.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/audio/linux/audio_manager_linux.cc
|
View
|
1
2
|
6 chunks |
+40 lines, -19 lines |
0 comments
|
Download
|
|
M |
media/audio/mac/audio_device_listener_mac.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/audio/mac/audio_low_latency_input_mac.cc
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/audio/mac/audio_low_latency_output_mac.cc
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/audio/mac/audio_manager_mac.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/audio/mac/audio_manager_mac.cc
|
View
|
1
2
|
5 chunks |
+33 lines, -14 lines |
0 comments
|
Download
|
|
M |
media/audio/mock_audio_manager.h
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/audio/mock_audio_manager.cc
|
View
|
1
2
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/audio/openbsd/audio_manager_openbsd.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/audio/openbsd/audio_manager_openbsd.cc
|
View
|
1
2
|
5 chunks |
+38 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/audio/pulse/audio_manager_pulse.h
|
View
|
1
2
3
4
|
3 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/audio/pulse/audio_manager_pulse.cc
|
View
|
1
2
|
4 chunks |
+31 lines, -15 lines |
0 comments
|
Download
|
|
M |
media/audio/win/audio_manager_win.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/audio/win/audio_manager_win.cc
|
View
|
1
2
3
|
6 chunks |
+80 lines, -22 lines |
0 comments
|
Download
|
|
M |
media/audio/win/audio_output_win_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 25 (0 generated)
|