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

Issue 3185022: Share one thread between all AudioOutputControllers instead of creating one per stream. (Closed)

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

Description

Share one thread between all AudioOutputControllers instead of creating one per stream. TEST=unittests BUG=39825 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57392

Patch Set 1 #

Total comments: 17

Patch Set 2 : async Close() #

Patch Set 3 : addressed review comments #

Total comments: 8

Patch Set 4 : - #

Patch Set 5 : - #

Patch Set 6 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -237 lines) Patch
M chrome/common/render_messages_params.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/media/audio_renderer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/audio_input_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/audio_io.h View 1 chunk +0 lines, -76 lines 0 comments Download
A media/audio/audio_manager.h View 1 2 1 chunk +101 lines, -0 lines 0 comments Download
A media/audio/audio_manager.cc View 1 2 1 chunk +59 lines, -0 lines 0 comments Download
A media/audio/audio_manager_base.h View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A media/audio/audio_manager_base.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M media/audio/audio_output_controller.h View 1 2 3 3 chunks +8 lines, -6 lines 0 comments Download
M media/audio/audio_output_controller.cc View 1 11 chunks +54 lines, -54 lines 0 comments Download
M media/audio/audio_output_controller_unittest.cc View 2 3 9 chunks +33 lines, -10 lines 0 comments Download
M media/audio/fake_audio_input_stream_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download
M media/audio/fake_audio_output_stream.h View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/fake_audio_output_stream.cc View 3 chunks +16 lines, -7 lines 0 comments Download
M media/audio/linux/alsa_output.h View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/linux/alsa_output.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M media/audio/linux/audio_manager_linux.h View 2 chunks +2 lines, -7 lines 0 comments Download
M media/audio/linux/audio_manager_linux.cc View 6 chunks +7 lines, -26 lines 0 comments Download
M media/audio/mac/audio_manager_mac.h View 1 chunk +2 lines, -2 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 2 chunks +3 lines, -19 lines 0 comments Download
M media/audio/mac/audio_output_mac_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
media/audio/openbsd/audio_manager_openbsd.h View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/openbsd/audio_manager_openbsd.cc View 3 chunks +6 lines, -1 line 0 comments Download
M media/audio/simple_sources_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/win/audio_input_win_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/win/audio_manager_win.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/win/audio_manager_win.cc View 3 chunks +3 lines, -14 lines 0 comments Download
M media/audio/win/audio_output_win_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/audio_renderer_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Sergey Ulanov
Tried it with http://www/~sergeyu/test2.html - starts two sounds at the same time. On Windows it ...
10 years, 4 months ago (2010-08-23 23:44:08 UTC) #1
Alpha Left Google
This is looking really good. It will be better if we can get rid of ...
10 years, 4 months ago (2010-08-24 01:23:00 UTC) #2
awong
Looks very good. I like. Go Sergey! Added some comments. http://codereview.chromium.org/3185022/diff/1/6 File media/audio/audio_manager.cc (right): http://codereview.chromium.org/3185022/diff/1/6#newcode52 ...
10 years, 4 months ago (2010-08-24 17:37:51 UTC) #3
scherkus (not reviewing)
http://codereview.chromium.org/3185022/diff/1/7 File media/audio/audio_manager.h (right): http://codereview.chromium.org/3185022/diff/1/7#newcode11 media/audio/audio_manager.h:11: class AudioInputStream; alphabetize forward decls http://codereview.chromium.org/3185022/diff/1/7#newcode99 media/audio/audio_manager.h:99: }; DISALLOW_COPY_AND_ASSIGN ...
10 years, 4 months ago (2010-08-24 17:51:34 UTC) #4
awong
On Tue, Aug 24, 2010 at 10:51 AM, <scherkus@chromium.org> wrote: > > http://codereview.chromium.org/3185022/diff/1/7 > File ...
10 years, 4 months ago (2010-08-24 18:01:54 UTC) #5
Sergey Ulanov
http://codereview.chromium.org/3185022/diff/1/6 File media/audio/audio_manager.cc (right): http://codereview.chromium.org/3185022/diff/1/6#newcode55 media/audio/audio_manager.cc:55: LOG(WARNING) << "Creating"; On 2010/08/24 17:37:52, awong wrote: > ...
10 years, 4 months ago (2010-08-24 18:47:36 UTC) #6
Alpha Left Google
LGTM given that the comments are corrected. http://codereview.chromium.org/3185022/diff/12001/13010 File media/audio/audio_output_controller.h (right): http://codereview.chromium.org/3185022/diff/12001/13010#newcode143 media/audio/audio_output_controller.h:143: // Closes ...
10 years, 4 months ago (2010-08-24 21:32:49 UTC) #7
Sergey Ulanov
http://codereview.chromium.org/3185022/diff/12001/13010 File media/audio/audio_output_controller.h (right): http://codereview.chromium.org/3185022/diff/12001/13010#newcode143 media/audio/audio_output_controller.h:143: // Closes the audio output stream and shutdown the ...
10 years, 4 months ago (2010-08-24 21:57:09 UTC) #8
Sergey Ulanov
10 years, 4 months ago (2010-08-25 19:41:40 UTC) #9
Also added a fix in fake_audio_output_stream.cc - needed to avoid intermittent
failure in AudioRendererHostTest.SetVolume test due to races.

Powered by Google App Engine
This is Rietveld 408576698