summaryrefslogtreecommitdiffstats
path: root/media/audio/sounds/audio_stream_handler.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/sounds/audio_stream_handler.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/sounds/audio_stream_handler.cc')
-rw-r--r--media/audio/sounds/audio_stream_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/audio/sounds/audio_stream_handler.cc b/media/audio/sounds/audio_stream_handler.cc
index 645fcb3..7e48b2d 100644
--- a/media/audio/sounds/audio_stream_handler.cc
+++ b/media/audio/sounds/audio_stream_handler.cc
@@ -105,7 +105,7 @@ class AudioStreamHandler::AudioStreamContainer
// AudioOutputStream::AudioSourceCallback overrides:
// Following methods could be called from *ANY* thread.
virtual int OnMoreData(AudioBus* dest,
- AudioBuffersState /* state */) OVERRIDE {
+ int /* total_bytes_delay */) OVERRIDE {
base::AutoLock al(state_lock_);
size_t bytes_written = 0;