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

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

Issue 12806009: Add OpenSL configurations (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: rebase Created 7 years, 9 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>
qinmin 2013/03/21 14:56:19 move these to cc
leozwang1 2013/03/21 15:33:35 Done.
leozwang1 2013/03/21 17:43:38 Cannot move these to cc because header file uses S
qinmin 2013/03/21 17:51:45 only OpenSLES_Android.h is used I suppose, and the
9 #include <SLES/OpenSLES_Android.h>
10 #include <SLES/OpenSLES_AndroidConfiguration.h>
11
8 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
9 #include "media/audio/audio_io.h" 13 #include "media/audio/audio_io.h"
10 #include "media/audio/audio_parameters.h" 14 #include "media/audio/audio_parameters.h"
11 #include "media/audio/android/opensles_util.h" 15 #include "media/audio/android/opensles_util.h"
12 #include <SLES/OpenSLES_Android.h>
13 16
14 namespace media { 17 namespace media {
15 18
16 class AudioManagerAndroid; 19 class AudioManagerAndroid;
17 20
18 // Implements PCM audio input support for Android using the OpenSLES API. 21 // Implements PCM audio input support for Android using the OpenSLES API.
19 class OpenSLESInputStream : public AudioInputStream { 22 class OpenSLESInputStream : public AudioInputStream {
20 public: 23 public:
21 static const int kNumOfQueuesInBuffer = 2; 24 static const int kNumOfQueuesInBuffer = 2;
22 25
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 int buffer_size_bytes_; 80 int buffer_size_bytes_;
78 81
79 bool started_; 82 bool started_;
80 83
81 DISALLOW_COPY_AND_ASSIGN(OpenSLESInputStream); 84 DISALLOW_COPY_AND_ASSIGN(OpenSLESInputStream);
82 }; 85 };
83 86
84 } // namespace media 87 } // namespace media
85 88
86 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_ 89 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_
OLDNEW
« no previous file with comments | « no previous file | media/audio/android/opensles_input.cc » ('j') | media/audio/android/opensles_input.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698