summaryrefslogtreecommitdiffstats
path: root/content/renderer/renderer_webaudiodevice_impl.cc
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-27 20:36:10 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-27 20:36:10 +0000
commitab34561dd992607626f7b7c7ee06d429de55df04 (patch)
treeec9f032f24ced4f86c4b866de1415cbc977ca7a7 /content/renderer/renderer_webaudiodevice_impl.cc
parentb492263fad2d811e7d942e63a61ce2f6a3fdfa7c (diff)
downloadchromium_src-ab34561dd992607626f7b7c7ee06d429de55df04.zip
chromium_src-ab34561dd992607626f7b7c7ee06d429de55df04.tar.gz
chromium_src-ab34561dd992607626f7b7c7ee06d429de55df04.tar.bz2
Detect errors in audio output and report them upstream.
Stop feeding audio packets to AUDIO DemuxerStreams once audio has been disabled. BUG=111409 TEST=uninstall pulseaudio, make /dev/snd inaccessible, and observe <video> plays correctly (muted) instead of hanging. Review URL: http://codereview.chromium.org/9234066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/renderer_webaudiodevice_impl.cc')
-rw-r--r--content/renderer/renderer_webaudiodevice_impl.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/content/renderer/renderer_webaudiodevice_impl.cc b/content/renderer/renderer_webaudiodevice_impl.cc
index 77c6ba37..623fb5a 100644
--- a/content/renderer/renderer_webaudiodevice_impl.cc
+++ b/content/renderer/renderer_webaudiodevice_impl.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -51,3 +51,7 @@ size_t RendererWebAudioDeviceImpl::Render(const std::vector<float*>& audio_data,
}
return number_of_frames;
}
+
+void RendererWebAudioDeviceImpl::OnError() {
+ // TODO(crogers): implement error handling.
+}