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

Side by Side Diff: media/audio/virtual_audio_input_stream.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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 (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 "media/audio/virtual_audio_input_stream.h" 5 #include "media/audio/virtual_audio_input_stream.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "media/audio/virtual_audio_output_stream.h" 12 #include "media/audio/virtual_audio_output_stream.h"
13 #include "media/base/loopback_audio_converter.h" 13 #include "media/base/loopback_audio_converter.h"
14 14
15 namespace media { 15 namespace media {
16 16
17 VirtualAudioInputStream::VirtualAudioInputStream( 17 VirtualAudioInputStream::VirtualAudioInputStream(
18 const AudioParameters& params, 18 const AudioParameters& params,
19 const scoped_refptr<base::SingleThreadTaskRunner>& worker_task_runner, 19 const scoped_refptr<base::SingleThreadTaskRunner>& worker_task_runner,
20 const AfterCloseCallback& after_close_cb) 20 const AfterCloseCallback& after_close_cb)
21 : worker_task_runner_(worker_task_runner), 21 : worker_task_runner_(worker_task_runner),
22 after_close_cb_(after_close_cb), 22 after_close_cb_(after_close_cb),
23 callback_(NULL), 23 callback_(NULL),
24 buffer_(new uint8[params.GetBytesPerBuffer()]), 24 buffer_(new uint8_t[params.GetBytesPerBuffer()]),
25 params_(params), 25 params_(params),
26 mixer_(params_, params_, false), 26 mixer_(params_, params_, false),
27 num_attached_output_streams_(0), 27 num_attached_output_streams_(0),
28 fake_worker_(worker_task_runner_, params_), 28 fake_worker_(worker_task_runner_, params_),
29 audio_bus_(AudioBus::Create(params)) { 29 audio_bus_(AudioBus::Create(params)) {
30 DCHECK(params_.IsValid()); 30 DCHECK(params_.IsValid());
31 DCHECK(worker_task_runner_.get()); 31 DCHECK(worker_task_runner_.get());
32 32
33 // VAIS can be constructed on any thread, but will DCHECK that all 33 // VAIS can be constructed on any thread, but will DCHECK that all
34 // AudioInputStream methods are called from the same thread. 34 // AudioInputStream methods are called from the same thread.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 bool VirtualAudioInputStream::GetAutomaticGainControl() { 146 bool VirtualAudioInputStream::GetAutomaticGainControl() {
147 return false; 147 return false;
148 } 148 }
149 149
150 bool VirtualAudioInputStream::IsMuted() { 150 bool VirtualAudioInputStream::IsMuted() {
151 return false; 151 return false;
152 } 152 }
153 153
154 } // namespace media 154 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698