OLD | NEW |
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_DEBUG_WRITER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_DEBUG_WRITER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_DEBUG_WRITER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_DEBUG_WRITER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/files/file.h" | 12 #include "base/files/file.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/move.h" |
16 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
17 #include "media/audio/audio_input_writer.h" | 18 #include "media/audio/audio_input_writer.h" |
18 #include "media/base/audio_parameters.h" | 19 #include "media/base/audio_parameters.h" |
19 | 20 |
20 namespace media { | 21 namespace media { |
21 | 22 |
22 class AudioBus; | 23 class AudioBus; |
23 class AudioBusRefCounted; | 24 class AudioBusRefCounted; |
24 | 25 |
25 } // namespace media | 26 } // namespace media |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Intermediate buffer to be written to file. Interleaved 16 bit audio data. | 63 // Intermediate buffer to be written to file. Interleaved 16 bit audio data. |
63 std::unique_ptr<int16_t[]> interleaved_data_; | 64 std::unique_ptr<int16_t[]> interleaved_data_; |
64 int interleaved_data_size_; | 65 int interleaved_data_size_; |
65 | 66 |
66 base::WeakPtrFactory<AudioInputDebugWriter> weak_factory_; | 67 base::WeakPtrFactory<AudioInputDebugWriter> weak_factory_; |
67 }; | 68 }; |
68 | 69 |
69 } // namspace content | 70 } // namspace content |
70 | 71 |
71 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_DEBUG_WRITER_H_ | 72 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_DEBUG_WRITER_H_ |
OLD | NEW |