summaryrefslogtreecommitdiffstats
path: root/media/media.gyp
diff options
context:
space:
mode:
authordalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-21 04:24:19 +0000
committerdalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-21 04:24:19 +0000
commit4187ea43e11dd33ec2d542edd76163d8fc7ed1c1 (patch)
tree142e57255a31a095905e78423279f1fa2f4eb42e /media/media.gyp
parent2d115a11ba119dc8d3df465b3fdb96fb94a0e1bc (diff)
downloadchromium_src-4187ea43e11dd33ec2d542edd76163d8fc7ed1c1.zip
chromium_src-4187ea43e11dd33ec2d542edd76163d8fc7ed1c1.tar.gz
chromium_src-4187ea43e11dd33ec2d542edd76163d8fc7ed1c1.tar.bz2
Collapse AudioRendererMixer and OnMoreDataResampler into AudioTransform.
Currently we have roughly equivalent functionality in two places, and the CloudView project will add a third. As such there's a need for a single super class which can handle mixing, resampling, and general conversion from one set of AudioParameters to another. This change introduces the AudioTransform object which collapses the key functionality from AudioRendererMixer and OnMoreDataResampler into a single AudioTransform class which can do everything and is oblivious to the peculiars of RenderCallback vs AudioSourceCallback. It also introduces output_frames_ready() methods to the AudioPullFifo and MultiChannelResampler classes so that buffer delay can be measured accurately without resorting to input vs output byte counting. Due to the bulk of AudioRendererMixer's functionality moving into the new AudioTransform, it made sense to move some decisions into the AudioRendererMixerInput class as well. On my Z600, benchmarking 50000 iterations: Convert() w/ FIFO took 7030.11ms. Convert() w/o FIFO took 5218.83ms. BUG=none TEST=AudioTransform* unittests. TBR=sergeyu Review URL: https://chromiumcodereview.appspot.com/11410012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168976 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/media.gyp')
-rw-r--r--media/media.gyp3
1 files changed, 3 insertions, 0 deletions
diff --git a/media/media.gyp b/media/media.gyp
index eca9c7f..76e09b7 100644
--- a/media/media.gyp
+++ b/media/media.gyp
@@ -159,6 +159,8 @@
'base/android/media_player_bridge_manager.cc',
'base/android/media_player_bridge_manager.h',
'base/audio_capturer_source.h',
+ 'base/audio_converter.cc',
+ 'base/audio_converter.h',
'base/audio_decoder.cc',
'base/audio_decoder.h',
'base/audio_decoder_config.cc',
@@ -624,6 +626,7 @@
'audio/win/audio_unified_win_unittest.cc',
'audio/win/core_audio_util_win_unittest.cc',
'base/audio_bus_unittest.cc',
+ 'base/audio_converter_unittest.cc',
'base/audio_fifo_unittest.cc',
'base/audio_pull_fifo_unittest.cc',
'base/audio_renderer_mixer_input_unittest.cc',