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 22:08:24 +0000
committeracolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-18 22:09:57 +0000
commit1fdcfb56d3e76afa29cfc4ff795ba9c1353b0f54 (patch)
tree097d5a5114f0b70be2c2041d9d5be2fc70f23d6c /media/audio/virtual_audio_input_stream_unittest.cc
parent73a643f618a1329425fcecb4d3c9d5ea890b636c (diff)
downloadchromium_src-1fdcfb56d3e76afa29cfc4ff795ba9c1353b0f54.zip
chromium_src-1fdcfb56d3e76afa29cfc4ff795ba9c1353b0f54.tar.gz
chromium_src-1fdcfb56d3e76afa29cfc4ff795ba9c1353b0f54.tar.bz2
Revert 290359 "Remove AudioBuffersState class."
Broke ChromeOS bots http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20ChromeOS/builds/70835/steps/compile/logs/stdio#error1 > 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 TBR=acolwell@chromium.org Review URL: https://codereview.chromium.org/487543002 Cr-Commit-Position: refs/heads/master@{#290376} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290376 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, 2 insertions, 3 deletions
diff --git a/media/audio/virtual_audio_input_stream_unittest.cc b/media/audio/virtual_audio_input_stream_unittest.cc
index c82a9ff..3aa87b0 100644
--- a/media/audio/virtual_audio_input_stream_unittest.cc
+++ b/media/audio/virtual_audio_input_stream_unittest.cc
@@ -67,9 +67,8 @@ class TestAudioSource : public SineWaveAudioSource {
virtual ~TestAudioSource() {}
virtual int OnMoreData(AudioBus* audio_bus,
- int total_bytes_delay) OVERRIDE {
- const int ret = SineWaveAudioSource::OnMoreData(audio_bus,
- total_bytes_delay);
+ AudioBuffersState audio_buffers) OVERRIDE {
+ const int ret = SineWaveAudioSource::OnMoreData(audio_bus, audio_buffers);
data_pulled_.Signal();
return ret;
}