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