Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: media/audio/pulse/pulse_input.h

Issue 2891303002: Fake no input callbacks in PulseAudio. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/audio/pulse/pulse_input.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | media/audio/pulse/pulse_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698