summaryrefslogtreecommitdiffstats
path: root/media/media.gyp
diff options
context:
space:
mode:
authorxians@chromium.org <xians@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-16 21:38:18 +0000
committerxians@chromium.org <xians@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-16 21:38:18 +0000
commit43a63273ded47c2c086c738f98599a61aa72fef9 (patch)
treec2db0c84f76e1a51074645c3bd880b66fd916c97 /media/media.gyp
parent3df4a8560e995a350304770bc2314e07713fefaf (diff)
downloadchromium_src-43a63273ded47c2c086c738f98599a61aa72fef9.zip
chromium_src-43a63273ded47c2c086c738f98599a61aa72fef9.tar.gz
chromium_src-43a63273ded47c2c086c738f98599a61aa72fef9.tar.bz2
Add a block based Audio FIFO.
This new AudioBlockFifo() is made for the input code to avoid copying audio data during Push() and Consume(). Contrast to the existing AudioFifo, which requires a AudioBus* as input param for its Push() and Consume() methods to copy the data from/to the FIFO, this new AudioBlockFifo keeps blocks of AudioBus, it accepts interleaved data as input for its Push() method, and its Consume() method return an AudioBus for consumption. So the copy operations in this AudioBlockFifo() is 1 versus 3 in AudioFifo(). NOTRY=true BUG=393199 TEST=media_unittests --gtest_filter="*AudioBlockFifo*" Review URL: https://codereview.chromium.org/389623002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283518 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/media.gyp')
-rw-r--r--media/media.gyp5
1 files changed, 4 insertions, 1 deletions
diff --git a/media/media.gyp b/media/media.gyp
index fdccc42..f1e81dd 100644
--- a/media/media.gyp
+++ b/media/media.gyp
@@ -206,13 +206,15 @@
'base/android/media_player_manager.h',
'base/android/media_resource_getter.cc',
'base/android/media_resource_getter.h',
+ 'base/audio_block_fifo.cc',
+ 'base/audio_block_fifo.h',
'base/audio_buffer.cc',
'base/audio_buffer.h',
'base/audio_buffer_queue.cc',
'base/audio_buffer_queue.h',
- 'base/audio_capturer_source.h',
'base/audio_buffer_converter.cc',
'base/audio_buffer_converter.h',
+ 'base/audio_capturer_source.h',
'base/audio_converter.cc',
'base/audio_converter.h',
'base/audio_decoder.cc',
@@ -1061,6 +1063,7 @@
'base/android/media_codec_bridge_unittest.cc',
'base/android/media_drm_bridge_unittest.cc',
'base/android/media_source_player_unittest.cc',
+ 'base/audio_block_fifo_unittest.cc',
'base/audio_buffer_converter_unittest.cc',
'base/audio_buffer_unittest.cc',
'base/audio_buffer_queue_unittest.cc',