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 MEDIA_AUDIO_PULSE_PULSE_INPUT_H_ | 5 #ifndef MEDIA_AUDIO_PULSE_PULSE_INPUT_H_ |
6 #define MEDIA_AUDIO_PULSE_PULSE_INPUT_H_ | 6 #define MEDIA_AUDIO_PULSE_PULSE_INPUT_H_ |
7 | 7 |
8 #include <pulse/pulseaudio.h> | 8 #include <pulse/pulseaudio.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <string> | 10 #include <string> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Holds the data from the OS. | 73 // Holds the data from the OS. |
74 AudioBlockFifo fifo_; | 74 AudioBlockFifo fifo_; |
75 | 75 |
76 // PulseAudio API structs. | 76 // PulseAudio API structs. |
77 pa_threaded_mainloop* pa_mainloop_; // Weak. | 77 pa_threaded_mainloop* pa_mainloop_; // Weak. |
78 pa_context* pa_context_; // Weak. | 78 pa_context* pa_context_; // Weak. |
79 pa_stream* handle_; | 79 pa_stream* handle_; |
80 | 80 |
81 base::ThreadChecker thread_checker_; | 81 base::ThreadChecker thread_checker_; |
82 | 82 |
| 83 int callback_count_ = 0; |
| 84 |
83 DISALLOW_COPY_AND_ASSIGN(PulseAudioInputStream); | 85 DISALLOW_COPY_AND_ASSIGN(PulseAudioInputStream); |
84 }; | 86 }; |
85 | 87 |
86 } // namespace media | 88 } // namespace media |
87 | 89 |
88 #endif // MEDIA_AUDIO_PULSE_PULSE_INPUT_H_ | 90 #endif // MEDIA_AUDIO_PULSE_PULSE_INPUT_H_ |
OLD | NEW |