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

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

Issue 17491007: Enable audio volume control on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase and update description Created 7 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/android/audio_manager_android.cc ('k') | media/audio/android/opensles_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_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>
9 #include <SLES/OpenSLES_Android.h>
10
8 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
9 #include "media/audio/audio_io.h" 12 #include "media/audio/audio_io.h"
10 #include "media/audio/audio_parameters.h" 13 #include "media/audio/audio_parameters.h"
11 #include "media/audio/android/opensles_util.h" 14 #include "media/audio/android/opensles_util.h"
12 #include <SLES/OpenSLES_Android.h>
13 15
14 namespace media { 16 namespace media {
15 17
16 class AudioManagerAndroid; 18 class AudioManagerAndroid;
17 19
18 // Implements PCM audio input support for Android using the OpenSLES API. 20 // Implements PCM audio input support for Android using the OpenSLES API.
19 class OpenSLESInputStream : public AudioInputStream { 21 class OpenSLESInputStream : public AudioInputStream {
20 public: 22 public:
21 static const int kNumOfQueuesInBuffer = 2; 23 static const int kNumOfQueuesInBuffer = 2;
22 24
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 int buffer_size_bytes_; 79 int buffer_size_bytes_;
78 80
79 bool started_; 81 bool started_;
80 82
81 DISALLOW_COPY_AND_ASSIGN(OpenSLESInputStream); 83 DISALLOW_COPY_AND_ASSIGN(OpenSLESInputStream);
82 }; 84 };
83 85
84 } // namespace media 86 } // namespace media
85 87
86 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_ 88 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_
OLDNEW
« no previous file with comments | « media/audio/android/audio_manager_android.cc ('k') | media/audio/android/opensles_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698