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

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

Issue 13290002: Revert 189210 "Add MODIFY_AUDIO_SETTINGS permission in Android m..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1453/src/
Patch Set: Created 7 years, 8 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
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_OUTPUT_H_ 5 #ifndef MEDIA_AUDIO_ANDROID_OPENSLES_OUTPUT_H_
6 #define MEDIA_AUDIO_ANDROID_OPENSLES_OUTPUT_H_ 6 #define MEDIA_AUDIO_ANDROID_OPENSLES_OUTPUT_H_
7 7
8 #include <SLES/OpenSLES.h> 8 #include <vector>
9 #include <SLES/OpenSLES_Android.h>
10 #include <SLES/OpenSLES_AndroidConfiguration.h>
11 9
12 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
13 #include "media/audio/android/opensles_util.h" 11 #include "media/audio/android/opensles_util.h"
14 #include "media/audio/audio_io.h" 12 #include "media/audio/audio_io.h"
15 #include "media/audio/audio_parameters.h" 13 #include "media/audio/audio_parameters.h"
14 #include <SLES/OpenSLES_Android.h>
16 15
17 namespace media { 16 namespace media {
18 17
19 class AudioManagerAndroid; 18 class AudioManagerAndroid;
20 19
21 // Implements PCM audio output support for Android using the OpenSLES API. 20 // Implements PCM audio output support for Android using the OpenSLES API.
22 class OpenSLESOutputStream : public AudioOutputStream { 21 class OpenSLESOutputStream : public AudioOutputStream {
23 public: 22 public:
24 static const int kNumOfQueuesInBuffer = 2; 23 static const int kNumOfQueuesInBuffer = 2;
25 24
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 82
84 // Container for retrieving data from AudioSourceCallback::OnMoreData(). 83 // Container for retrieving data from AudioSourceCallback::OnMoreData().
85 scoped_ptr<AudioBus> audio_bus_; 84 scoped_ptr<AudioBus> audio_bus_;
86 85
87 DISALLOW_COPY_AND_ASSIGN(OpenSLESOutputStream); 86 DISALLOW_COPY_AND_ASSIGN(OpenSLESOutputStream);
88 }; 87 };
89 88
90 } // namespace media 89 } // namespace media
91 90
92 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_ 91 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_
OLDNEW
« no previous file with comments | « content/shell/android/shell_apk/AndroidManifest.xml ('k') | media/audio/audio_input_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698