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 #ifndef CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // track has the required buffer size, regardless of the amount of audio | 81 // track has the required buffer size, regardless of the amount of audio |
82 // provided via each consumeAudio() call. | 82 // provided via each consumeAudio() call. |
83 media::AudioPushFifo fifo_; | 83 media::AudioPushFifo fifo_; |
84 | 84 |
85 // Used to pass the reference timestamp between DeliverDecodedAudio() and | 85 // Used to pass the reference timestamp between DeliverDecodedAudio() and |
86 // DeliverRebufferedAudio(). | 86 // DeliverRebufferedAudio(). |
87 base::TimeTicks current_reference_time_; | 87 base::TimeTicks current_reference_time_; |
88 | 88 |
89 // Synchronizes HandleCapture() with AudioCapturerSource calls. | 89 // Synchronizes HandleCapture() with AudioCapturerSource calls. |
90 base::Lock lock_; | 90 base::Lock lock_; |
91 bool started_; | |
92 | 91 |
93 // This object registers with a blink::WebMediaStreamSource. We keep track of | 92 // This object registers with a blink::WebMediaStreamSource. We keep track of |
94 // that in order to be able to deregister before stopping the audio track. | 93 // that in order to be able to deregister before stopping the audio track. |
95 blink::WebMediaStreamSource blink_source_; | 94 blink::WebMediaStreamSource blink_source_; |
96 | 95 |
97 DISALLOW_COPY_AND_ASSIGN(WebAudioCapturerSource); | 96 DISALLOW_COPY_AND_ASSIGN(WebAudioCapturerSource); |
98 }; | 97 }; |
99 | 98 |
100 } // namespace content | 99 } // namespace content |
101 | 100 |
102 #endif // CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ | 101 #endif // CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ |
OLD | NEW |