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

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

Issue 1907973003: media: Move audio_parameters and audio_point to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/media_stream_audio_sink_owner.h" 5 #include "content/renderer/media/media_stream_audio_sink_owner.h"
6 6
7 #include "content/public/renderer/media_stream_audio_sink.h" 7 #include "content/public/renderer/media_stream_audio_sink.h"
8 #include "media/audio/audio_parameters.h" 8 #include "media/base/audio_parameters.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 MediaStreamAudioSinkOwner::MediaStreamAudioSinkOwner(MediaStreamAudioSink* sink) 12 MediaStreamAudioSinkOwner::MediaStreamAudioSinkOwner(MediaStreamAudioSink* sink)
13 : delegate_(sink) { 13 : delegate_(sink) {
14 } 14 }
15 15
16 void MediaStreamAudioSinkOwner::OnData(const media::AudioBus& audio_bus, 16 void MediaStreamAudioSinkOwner::OnData(const media::AudioBus& audio_bus,
17 base::TimeTicks estimated_capture_time) { 17 base::TimeTicks estimated_capture_time) {
18 base::AutoLock lock(lock_); 18 base::AutoLock lock(lock_);
(...skipping 21 matching lines...) Expand all
40 } 40 }
41 41
42 bool MediaStreamAudioSinkOwner::IsEqual( 42 bool MediaStreamAudioSinkOwner::IsEqual(
43 const MediaStreamAudioSink* other) const { 43 const MediaStreamAudioSink* other) const {
44 DCHECK(other); 44 DCHECK(other);
45 base::AutoLock lock(lock_); 45 base::AutoLock lock(lock_);
46 return (other == delegate_); 46 return (other == delegate_);
47 } 47 }
48 48
49 } // namespace content 49 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698