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

Side by Side Diff: media/audio/android/opensles_input.h

Issue 2689483006: Switch browser side audio capture path to use base time primitives. (Closed)
Patch Set: Bloop Created 3 years, 10 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
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_ANDROID_OPENSLES_INPUT_H_ 5 #ifndef MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_
6 #define MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_ 6 #define MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_
7 7
8 #include <SLES/OpenSLES.h> 8 #include <SLES/OpenSLES.h>
9 #include <SLES/OpenSLES_Android.h> 9 #include <SLES/OpenSLES_Android.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // Audio buffers that are allocated in the constructor based on 94 // Audio buffers that are allocated in the constructor based on
95 // info from audio parameters. 95 // info from audio parameters.
96 uint8_t* audio_data_[kMaxNumOfBuffersInQueue]; 96 uint8_t* audio_data_[kMaxNumOfBuffersInQueue];
97 97
98 int active_buffer_index_; 98 int active_buffer_index_;
99 int buffer_size_bytes_; 99 int buffer_size_bytes_;
100 100
101 bool started_; 101 bool started_;
102 102
103 base::TimeDelta hardware_delay_;
104
103 std::unique_ptr<media::AudioBus> audio_bus_; 105 std::unique_ptr<media::AudioBus> audio_bus_;
104 106
105 DISALLOW_COPY_AND_ASSIGN(OpenSLESInputStream); 107 DISALLOW_COPY_AND_ASSIGN(OpenSLESInputStream);
106 }; 108 };
107 109
108 } // namespace media 110 } // namespace media
109 111
110 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_ 112 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698