Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2127)

Side by Side Diff: content/renderer/media/renderer_webaudiodevice_impl.cc

Issue 9965076: Revert 130180 - Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/renderer_webaudiodevice_impl.h" 5 #include "content/renderer/media/renderer_webaudiodevice_impl.h"
6 6
7 using WebKit::WebAudioDevice; 7 using WebKit::WebAudioDevice;
8 using WebKit::WebVector; 8 using WebKit::WebVector;
9 9
10 RendererWebAudioDeviceImpl::RendererWebAudioDeviceImpl( 10 RendererWebAudioDeviceImpl::RendererWebAudioDeviceImpl(
11 const media::AudioParameters& params, 11 const AudioParameters& params, WebAudioDevice::RenderCallback* callback)
12 WebAudioDevice::RenderCallback* callback)
13 : is_running_(false), 12 : is_running_(false),
14 client_callback_(callback) { 13 client_callback_(callback) {
15 audio_device_ = new AudioDevice(params, this); 14 audio_device_ = new AudioDevice(params, this);
16 } 15 }
17 16
18 RendererWebAudioDeviceImpl::~RendererWebAudioDeviceImpl() { 17 RendererWebAudioDeviceImpl::~RendererWebAudioDeviceImpl() {
19 stop(); 18 stop();
20 } 19 }
21 20
22 void RendererWebAudioDeviceImpl::start() { 21 void RendererWebAudioDeviceImpl::start() {
(...skipping 26 matching lines...) Expand all
49 web_audio_data[i] = audio_data[i]; 48 web_audio_data[i] = audio_data[i];
50 49
51 client_callback_->render(web_audio_data, number_of_frames); 50 client_callback_->render(web_audio_data, number_of_frames);
52 } 51 }
53 return number_of_frames; 52 return number_of_frames;
54 } 53 }
55 54
56 void RendererWebAudioDeviceImpl::OnRenderError() { 55 void RendererWebAudioDeviceImpl::OnRenderError() {
57 // TODO(crogers): implement error handling. 56 // TODO(crogers): implement error handling.
58 } 57 }
OLDNEW
« no previous file with comments | « content/renderer/media/renderer_webaudiodevice_impl.h ('k') | content/renderer/media/webrtc_audio_device_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698