Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Issue 4661001: Simplified AudioOutputStream interface. (Closed)

Created:
10 years, 1 month ago by Sergey Ulanov
Modified:
9 years, 7 months ago
CC:
chromium-reviews, vrk (LEFT CHROMIUM), fbarchard, Alpha Left Google, ben+cc_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, awong, Paweł Hajdan Jr., pam+watch_chromium.org, scherkus (not reviewing)
Visibility:
Public.

Description

Simplified AudioOutputStream interface. 1. Removed packet_size parameter from Open(). 2. Removed OnClose() from the callback. Now the callback is guaranteed to be called only between Start() and Stop(). 3. Added samples_per_packet in the AudioParameters struct. BUG=39825 TEST=Unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65766

Patch Set 1 : - #

Total comments: 24

Patch Set 2 : addressed all comments #

Total comments: 4

Patch Set 3 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -441 lines) Patch
M chrome/browser/renderer_host/audio_renderer_host.cc View 1 4 chunks +13 lines, -14 lines 0 comments Download
M chrome/browser/renderer_host/audio_renderer_host_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/speech/speech_recognizer.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/common/render_messages_params.h View 1 1 chunk +3 lines, -7 lines 0 comments Download
M chrome/common/render_messages_params.cc View 4 chunks +4 lines, -5 lines 0 comments Download
M chrome/renderer/media/audio_renderer_impl.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/renderer/pepper_devices.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/pepper_plugin_delegate_impl.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M media/audio/audio_input_controller.h View 3 chunks +3 lines, -6 lines 0 comments Download
M media/audio/audio_input_controller.cc View 1 4 chunks +6 lines, -12 lines 0 comments Download
M media/audio/audio_input_controller_unittest.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M media/audio/audio_input_unittest.cc View 2 chunks +10 lines, -10 lines 0 comments Download
M media/audio/audio_io.h View 1 3 chunks +13 lines, -20 lines 0 comments Download
M media/audio/audio_manager.h View 1 2 3 chunks +14 lines, -7 lines 0 comments Download
M media/audio/audio_output_controller.h View 4 chunks +1 line, -6 lines 0 comments Download
M media/audio/audio_output_controller.cc View 10 chunks +12 lines, -27 lines 0 comments Download
M media/audio/audio_output_controller_unittest.cc View 7 chunks +15 lines, -19 lines 0 comments Download
M media/audio/audio_parameters.h View 1 2 1 chunk +12 lines, -6 lines 0 comments Download
M media/audio/audio_parameters.cc View 1 2 chunks +13 lines, -4 lines 0 comments Download
M media/audio/fake_audio_input_stream.h View 2 chunks +2 lines, -3 lines 0 comments Download
M media/audio/fake_audio_input_stream.cc View 1 chunk +6 lines, -7 lines 0 comments Download
M media/audio/fake_audio_input_stream_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/fake_audio_output_stream.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M media/audio/fake_audio_output_stream.cc View 1 4 chunks +8 lines, -13 lines 0 comments Download
M media/audio/linux/alsa_input.h View 2 chunks +0 lines, -2 lines 0 comments Download
M media/audio/linux/alsa_input.cc View 4 chunks +7 lines, -10 lines 0 comments Download
M media/audio/linux/alsa_output.h View 5 chunks +10 lines, -4 lines 0 comments Download
M media/audio/linux/alsa_output.cc View 1 7 chunks +12 lines, -29 lines 0 comments Download
M media/audio/linux/alsa_output_unittest.cc View 1 16 chunks +26 lines, -29 lines 0 comments Download
M media/audio/linux/audio_manager_linux.h View 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/linux/audio_manager_linux.cc View 4 chunks +5 lines, -7 lines 0 comments Download
M media/audio/mac/audio_input_mac.h View 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/mac/audio_input_mac.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M media/audio/mac/audio_manager_mac.h View 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 2 chunks +5 lines, -7 lines 0 comments Download
M media/audio/mac/audio_output_mac.h View 2 chunks +3 lines, -1 line 0 comments Download
M media/audio/mac/audio_output_mac.cc View 1 4 chunks +12 lines, -14 lines 0 comments Download
M media/audio/mac/audio_output_mac_unittest.cc View 6 chunks +16 lines, -16 lines 0 comments Download
M media/audio/openbsd/audio_manager_openbsd.h View 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/openbsd/audio_manager_openbsd.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/simple_sources.h View 2 chunks +0 lines, -2 lines 0 comments Download
M media/audio/simple_sources.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M media/audio/simple_sources_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M media/audio/test_audio_input_controller_factory.h View 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/test_audio_input_controller_factory.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/win/audio_manager_win.h View 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/win/audio_manager_win.cc View 3 chunks +5 lines, -7 lines 0 comments Download
M media/audio/win/audio_output_win_unittest.cc View 20 chunks +62 lines, -65 lines 0 comments Download
M media/audio/win/wavein_input_win.h View 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/win/wavein_input_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/win/waveout_output_win.h View 3 chunks +2 lines, -3 lines 0 comments Download
M media/audio/win/waveout_output_win.cc View 1 5 chunks +11 lines, -17 lines 0 comments Download
M media/base/limits.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/audio_renderer_impl.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Sergey Ulanov
This is one more (and probably last) cleanup before fixing 39825.
10 years, 1 month ago (2010-11-08 20:28:07 UTC) #1
scherkus (not reviewing)
lots of nits but overall looking pretty good high level things: - AudioParameters can probably ...
10 years, 1 month ago (2010-11-09 02:28:31 UTC) #2
Sergey Ulanov
Added GetPacketSize() in AudioParameters and filed a bug for cleanup work. Added TODO to switch ...
10 years, 1 month ago (2010-11-09 22:29:58 UTC) #3
scherkus (not reviewing)
LGTM w/ tiny nits thanks for doing this sergey! http://codereview.chromium.org/4661001/diff/22001/media/audio/audio_manager.h File media/audio/audio_manager.h (right): http://codereview.chromium.org/4661001/diff/22001/media/audio/audio_manager.h#newcode38 media/audio/audio_manager.h:38: ...
10 years, 1 month ago (2010-11-11 01:25:31 UTC) #4
Sergey Ulanov
10 years, 1 month ago (2010-11-11 03:06:24 UTC) #5
http://codereview.chromium.org/4661001/diff/22001/media/audio/audio_manager.h
File media/audio/audio_manager.h (right):

http://codereview.chromium.org/4661001/diff/22001/media/audio/audio_manager.h...
media/audio/audio_manager.h:38: // will be ready to be filled in the call to
AudioSourceCallback::OnMoreData().
On 2010/11/11 01:25:32, scherkus wrote:
> nit: >80 chars

Done.

http://codereview.chromium.org/4661001/diff/22001/media/audio/audio_parameters.h
File media/audio/audio_parameters.h (right):

http://codereview.chromium.org/4661001/diff/22001/media/audio/audio_parameter...
media/audio/audio_parameters.h:31: int GetPacketSize() const;
On 2010/11/11 01:25:32, scherkus wrote:
> could you add some documentation to these two methods?
> 
> doesn't have to be much.. one line sentence would do :)

Done.

Powered by Google App Engine
This is Rietveld 408576698