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

Issue 155894: Surround Sound handling by folding 5 channels down to stereo. (Closed)

Created:
11 years, 5 months ago by fbarchard
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, scherkus (not reviewing), fbarchard, awong, kylep, Alpha Left Google
Visibility:
Public.

Description

Surround Sound handling by folding 5 channels down to stereo. BUG=16026 TEST=play a movie trailer with 5.1 audio. It should sound roughly the same as quicktime. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21613

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 7

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -5 lines) Patch
M media/audio/audio_util.h View 1 2 3 2 chunks +24 lines, -0 lines 0 comments Download
M media/audio/audio_util.cc View 2 3 1 chunk +89 lines, -0 lines 0 comments Download
M media/audio/audio_util_unittest.cc View 2 3 2 chunks +71 lines, -0 lines 0 comments Download
M media/audio/win/waveout_output_win.h View 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/win/waveout_output_win.cc View 2 3 3 chunks +20 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
fbarchard
just the api and some comments about the surround sound folding
11 years, 5 months ago (2009-07-21 23:49:15 UTC) #1
fbarchard
Surround sound 5.1 folding down to stereo. Includes volume which reduces clipping if done in ...
11 years, 5 months ago (2009-07-22 05:00:17 UTC) #2
fbarchard
any comments on the code?
11 years, 5 months ago (2009-07-23 00:51:17 UTC) #3
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/155894/diff/1010/13 File media/audio/audio_util.cc (right): http://codereview.chromium.org/155894/diff/1010/13#newcode82 Line 82: #define CHANNEL_SR 4 #define considered harmful. Use a ...
11 years, 5 months ago (2009-07-23 17:49:51 UTC) #4
fbarchard
fix for overflow center channel gets .707 scaling const instead of macro fixed up unittests ...
11 years, 5 months ago (2009-07-24 00:27:54 UTC) #5
fbarchard
I've done quite a bit more testing, but have no more code changes to suggest ...
11 years, 5 months ago (2009-07-25 02:43:59 UTC) #6
fbarchard
11 years, 5 months ago (2009-07-25 03:23:12 UTC) #7
we need to move on.  i think this is the best compromise for now, and we should
definately improve on it in the future.

its fast enough, but could be faster.  I suggest optimizing the top 5
bottlenecks first and revisit this later.  But the thread on "a slowish audio
function" had some hints on what to do.

it doesnt do ogg properly, but neither does ffmpeg, mplayer, safari or firefox. 
The fix, I think will be in the the decoder - we'll detect ogg and remap to aac
style.  This is unrelated to folding.

its not perceptually correct, but it matches safari.  the center channel is
scaled by .707.
Doing a perceptually correct folder would introduce risk on performance, and not
sound the same as safari.  More research required.  But doing really good
folding, is not as good as actually supporting surround sound.

its not proper 5.1 support. The best solution will be when we can produce full
5.1 or 7.1 output to a home theatre.  But this likely requires a change to
directsound for PC.  We may want to do mac/linux first which hopefully have
better sound API's that pass thru 6 channels properly.

Powered by Google App Engine
This is Rietveld 408576698