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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 SLRecordItf recorder_; 83 SLRecordItf recorder_;
84 84
85 // Buffer queue recorder interface. 85 // Buffer queue recorder interface.
86 SLAndroidSimpleBufferQueueItf simple_buffer_queue_; 86 SLAndroidSimpleBufferQueueItf simple_buffer_queue_;
87 87
88 SLDataFormat_PCM format_; 88 SLDataFormat_PCM format_;
89 89
90 // Audio buffers that are allocated in the constructor based on 90 // Audio buffers that are allocated in the constructor based on
91 // info from audio parameters. 91 // info from audio parameters.
92 uint8* audio_data_[kMaxNumOfBuffersInQueue]; 92 uint8_t* audio_data_[kMaxNumOfBuffersInQueue];
93 93
94 int active_buffer_index_; 94 int active_buffer_index_;
95 int buffer_size_bytes_; 95 int buffer_size_bytes_;
96 96
97 bool started_; 97 bool started_;
98 98
99 scoped_ptr<media::AudioBus> audio_bus_; 99 scoped_ptr<media::AudioBus> audio_bus_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(OpenSLESInputStream); 101 DISALLOW_COPY_AND_ASSIGN(OpenSLESInputStream);
102 }; 102 };
103 103
104 } // namespace media 104 } // namespace media
105 105
106 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_ 106 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698