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

Side by Side Diff: media/audio/cras/cras_input.h

Issue 344583002: Modifies AudioInputCallback::OnData and use media::AudioBus instead of plain byte vector (Relanding) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added extra non-pure OnData API 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
« no previous file with comments | « media/audio/audio_low_latency_input_output_unittest.cc ('k') | media/audio/cras/cras_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_CRAS_CRAS_INPUT_H_ 5 #ifndef MEDIA_AUDIO_CRAS_CRAS_INPUT_H_
6 #define MEDIA_AUDIO_CRAS_CRAS_INPUT_H_ 6 #define MEDIA_AUDIO_CRAS_CRAS_INPUT_H_
7 7
8 #include <cras_client.h> 8 #include <cras_client.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // True if the stream has been started. 92 // True if the stream has been started.
93 bool started_; 93 bool started_;
94 94
95 // ID of the playing stream. 95 // ID of the playing stream.
96 cras_stream_id_t stream_id_; 96 cras_stream_id_t stream_id_;
97 97
98 // Direction of the stream. 98 // Direction of the stream.
99 const CRAS_STREAM_DIRECTION stream_direction_; 99 const CRAS_STREAM_DIRECTION stream_direction_;
100 100
101 scoped_ptr<AudioBus> audio_bus_;
102
101 DISALLOW_COPY_AND_ASSIGN(CrasInputStream); 103 DISALLOW_COPY_AND_ASSIGN(CrasInputStream);
102 }; 104 };
103 105
104 } // namespace media 106 } // namespace media
105 107
106 #endif // MEDIA_AUDIO_CRAS_CRAS_INPUT_H_ 108 #endif // MEDIA_AUDIO_CRAS_CRAS_INPUT_H_
OLDNEW
« no previous file with comments | « media/audio/audio_low_latency_input_output_unittest.cc ('k') | media/audio/cras/cras_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698