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

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

Issue 314713002: Modifies AudioInputCallback::OnData and use media::AudioBus instead of plain byte vector (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed fake input stream as well Created 6 years, 6 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 9
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 scoped_ptr<uint8[]> audio_data_buffer_; 68 scoped_ptr<uint8[]> audio_data_buffer_;
69 69
70 // PulseAudio API structs. 70 // PulseAudio API structs.
71 pa_threaded_mainloop* pa_mainloop_; // Weak. 71 pa_threaded_mainloop* pa_mainloop_; // Weak.
72 pa_context* pa_context_; // Weak. 72 pa_context* pa_context_; // Weak.
73 pa_stream* handle_; 73 pa_stream* handle_;
74 74
75 // Flag indicating the state of the context has been changed. 75 // Flag indicating the state of the context has been changed.
76 bool context_state_changed_; 76 bool context_state_changed_;
77 77
78 scoped_ptr<AudioBus> audio_bus_;
79
78 base::ThreadChecker thread_checker_; 80 base::ThreadChecker thread_checker_;
79 81
80 DISALLOW_COPY_AND_ASSIGN(PulseAudioInputStream); 82 DISALLOW_COPY_AND_ASSIGN(PulseAudioInputStream);
81 }; 83 };
82 84
83 } // namespace media 85 } // namespace media
84 86
85 #endif // MEDIA_AUDIO_PULSE_PULSE_INPUT_H_ 87 #endif // MEDIA_AUDIO_PULSE_PULSE_INPUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698