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

Side by Side Diff: components/audio_modem/modem_impl.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 "components/audio_modem/modem_impl.h" 5 #include "components/audio_modem/modem_impl.h"
6 6
7 #include <stdint.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include <limits> 10 #include <limits>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/bind.h" 13 #include "base/bind.h"
12 #include "base/bind_helpers.h" 14 #include "base/bind_helpers.h"
13 #include "base/command_line.h" 15 #include "base/command_line.h"
14 #include "base/logging.h" 16 #include "base/logging.h"
15 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
16 #include "base/run_loop.h" 18 #include "base/run_loop.h"
17 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
18 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
19 #include "base/strings/sys_string_conversions.h" 21 #include "base/strings/sys_string_conversions.h"
20 #include "base/time/time.h" 22 #include "base/time/time.h"
23 #include "build/build_config.h"
21 #include "components/audio_modem/audio_modem_switches.h" 24 #include "components/audio_modem/audio_modem_switches.h"
22 #include "components/audio_modem/audio_player_impl.h" 25 #include "components/audio_modem/audio_player_impl.h"
23 #include "components/audio_modem/audio_recorder_impl.h" 26 #include "components/audio_modem/audio_recorder_impl.h"
24 #include "components/audio_modem/public/whispernet_client.h" 27 #include "components/audio_modem/public/whispernet_client.h"
25 #include "content/public/browser/browser_thread.h" 28 #include "content/public/browser/browser_thread.h"
26 #include "media/audio/audio_manager.h" 29 #include "media/audio/audio_manager.h"
27 #include "media/audio/audio_manager_base.h" 30 #include "media/audio/audio_manager_base.h"
28 #include "media/base/audio_bus.h" 31 #include "media/base/audio_bus.h"
29 #include "third_party/webrtc/common_audio/wav_file.h" 32 #include "third_party/webrtc/common_audio/wav_file.h"
30 33
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 file_str = base::SysWideToNativeMB(file_path.value()); 334 file_str = base::SysWideToNativeMB(file_path.value());
332 #else 335 #else
333 file_str = dump_tokens_dir_.Append(filename).value(); 336 file_str = dump_tokens_dir_.Append(filename).value();
334 #endif 337 #endif
335 338
336 webrtc::WavWriter writer(file_str, kDefaultSampleRate, kMonoChannelCount); 339 webrtc::WavWriter writer(file_str, kDefaultSampleRate, kMonoChannelCount);
337 writer.WriteSamples(int_samples.data(), int_samples.size()); 340 writer.WriteSamples(int_samples.data(), int_samples.size());
338 } 341 }
339 342
340 } // namespace audio_modem 343 } // namespace audio_modem
OLDNEW
« no previous file with comments | « components/audio_modem/audio_recorder_unittest.cc ('k') | components/audio_modem/modem_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698