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

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

Issue 12571006: Add MODIFY_AUDIO_SETTINGS permission in Android manifest and implementation in audio manager. (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: change header order 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_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 <vector> 8 #include <SLES/OpenSLES_Android.h>
9 #include <SLES/OpenSLES_AndroidConfiguration.h>
9 10
11 #include "base/android/jni_android.h"
10 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
11 #include "media/audio/android/opensles_util.h" 13 #include "media/audio/android/opensles_util.h"
12 #include "media/audio/audio_io.h" 14 #include "media/audio/audio_io.h"
13 #include "media/audio/audio_parameters.h" 15 #include "media/audio/audio_parameters.h"
14 #include <SLES/OpenSLES_Android.h>
15 16
16 namespace media { 17 namespace media {
17 18
18 class AudioManagerAndroid; 19 class AudioManagerAndroid;
19 20
20 // Implements PCM audio output support for Android using the OpenSLES API. 21 // Implements PCM audio output support for Android using the OpenSLES API.
21 class OpenSLESOutputStream : public AudioOutputStream { 22 class OpenSLESOutputStream : public AudioOutputStream {
22 public: 23 public:
23 static const int kNumOfQueuesInBuffer = 2; 24 static const int kNumOfQueuesInBuffer = 2;
24 25
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 83
83 // Container for retrieving data from AudioSourceCallback::OnMoreData(). 84 // Container for retrieving data from AudioSourceCallback::OnMoreData().
84 scoped_ptr<AudioBus> audio_bus_; 85 scoped_ptr<AudioBus> audio_bus_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(OpenSLESOutputStream); 87 DISALLOW_COPY_AND_ASSIGN(OpenSLESOutputStream);
87 }; 88 };
88 89
89 } // namespace media 90 } // namespace media
90 91
91 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_ 92 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698