summaryrefslogtreecommitdiffstats
path: root/media/audio/virtual_audio_input_stream_unittest.cc
diff options
context:
space:
mode:
authoracolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-18 20:49:14 +0000
committeracolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-18 20:51:14 +0000
commit17d5186cef8688997c98457d2eeea86e4060023c (patch)
treef35299a66f6700e75a72300af93655bc028d458d /media/audio/virtual_audio_input_stream_unittest.cc
parent0ce108b7f87098120a1188d5d1dce826c7d11575 (diff)
downloadchromium_src-17d5186cef8688997c98457d2eeea86e4060023c.zip
chromium_src-17d5186cef8688997c98457d2eeea86e4060023c.tar.gz
chromium_src-17d5186cef8688997c98457d2eeea86e4060023c.tar.bz2
Remove AudioBuffersState class.
The AudioBuffersState object doesn't appear to be necessary anymore. Most code either completely ignores this information or doesn't actually care about the difference between pending_bytes and hardware_delay_bytes. Also usually only one of the 2 fields was actually being used at a time. This change removes the class and simply uses an int that represent the total number of delay bytes. BUG=125685 Review URL: https://codereview.chromium.org/467833002 Cr-Commit-Position: refs/heads/master@{#290359} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290359 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/virtual_audio_input_stream_unittest.cc')
-rw-r--r--media/audio/virtual_audio_input_stream_unittest.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/media/audio/virtual_audio_input_stream_unittest.cc b/media/audio/virtual_audio_input_stream_unittest.cc
index 3aa87b0..c82a9ff 100644
--- a/media/audio/virtual_audio_input_stream_unittest.cc
+++ b/media/audio/virtual_audio_input_stream_unittest.cc
@@ -67,8 +67,9 @@ class TestAudioSource : public SineWaveAudioSource {
virtual ~TestAudioSource() {}
virtual int OnMoreData(AudioBus* audio_bus,
- AudioBuffersState audio_buffers) OVERRIDE {
- const int ret = SineWaveAudioSource::OnMoreData(audio_bus, audio_buffers);
+ int total_bytes_delay) OVERRIDE {
+ const int ret = SineWaveAudioSource::OnMoreData(audio_bus,
+ total_bytes_delay);
data_pulled_.Signal();
return ret;
}