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

Side by Side Diff: chrome/renderer/media/cast_receiver_audio_valve.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/renderer/media/cast_receiver_audio_valve.h" 5 #include "chrome/renderer/media/cast_receiver_audio_valve.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "media/audio/audio_parameters.h" 9 #include "media/base/audio_parameters.h"
10 10
11 CastReceiverAudioValve::CastReceiverAudioValve( 11 CastReceiverAudioValve::CastReceiverAudioValve(
12 const media::AudioParameters& params, 12 const media::AudioParameters& params,
13 media::AudioCapturerSource::CaptureCallback* cb) 13 media::AudioCapturerSource::CaptureCallback* cb)
14 : cb_(cb), 14 : cb_(cb),
15 fifo_(base::Bind(&CastReceiverAudioValve::DeliverRebufferedAudio, 15 fifo_(base::Bind(&CastReceiverAudioValve::DeliverRebufferedAudio,
16 base::Unretained(this))), 16 base::Unretained(this))),
17 sample_rate_(params.sample_rate()) { 17 sample_rate_(params.sample_rate()) {
18 fifo_.Reset(params.frames_per_buffer()); 18 fifo_.Reset(params.frames_per_buffer());
19 } 19 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 cb_->Capture(&audio_bus, audio_delay_milliseconds, 1.0 /* volume */, 54 cb_->Capture(&audio_bus, audio_delay_milliseconds, 1.0 /* volume */,
55 false /* key_pressed */); 55 false /* key_pressed */);
56 } 56 }
57 } 57 }
58 58
59 void CastReceiverAudioValve::Stop() { 59 void CastReceiverAudioValve::Stop() {
60 base::AutoLock lock(lock_); 60 base::AutoLock lock(lock_);
61 cb_ = nullptr; 61 cb_ = nullptr;
62 } 62 }
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/cast_streaming_native_handler.cc ('k') | chrome/renderer/media/cast_rtp_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698