| OLD | NEW |
| 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/browser/renderer_host/media/audio_input_sync_writer.h" | 5 #include "content/browser/renderer_host/media/audio_input_sync_writer.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram_macros.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "content/browser/renderer_host/media/media_stream_manager.h" | 13 #include "content/browser/renderer_host/media/media_stream_manager.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 | 15 |
| 16 using media::AudioBus; | 16 using media::AudioBus; |
| 17 using media::AudioInputBuffer; | 17 using media::AudioInputBuffer; |
| 18 using media::AudioInputBufferParameters; | 18 using media::AudioInputBufferParameters; |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 current_segment_id_ = 0; | 337 current_segment_id_ = 0; |
| 338 ++number_of_filled_segments_; | 338 ++number_of_filled_segments_; |
| 339 CHECK_LE(number_of_filled_segments_, | 339 CHECK_LE(number_of_filled_segments_, |
| 340 static_cast<int>(shared_memory_segment_count_)); | 340 static_cast<int>(shared_memory_segment_count_)); |
| 341 ++next_buffer_id_; | 341 ++next_buffer_id_; |
| 342 | 342 |
| 343 return true; | 343 return true; |
| 344 } | 344 } |
| 345 | 345 |
| 346 } // namespace content | 346 } // namespace content |
| OLD | NEW |