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

Side by Side Diff: trunk/src/media/audio/android/audio_record_input.h

Issue 110303003: Revert 240548 "Enable platform echo cancellation through the Aud..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_AUDIO_RECORD_INPUT_H_ 5 #ifndef MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_
6 #define MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_ 6 #define MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "media/audio/audio_io.h" 10 #include "media/audio/audio_io.h"
11 #include "media/audio/audio_parameters.h" 11 #include "media/audio/audio_parameters.h"
12 12
13 namespace media { 13 namespace media {
14 14
15 class AudioManagerAndroid; 15 class AudioManagerAndroid;
16 16
17 // Implements PCM audio input support for Android using the Java AudioRecord 17 // Implements PCM audio input support for Android using the Java AudioRecord
18 // interface. Most of the work is done by its Java counterpart in 18 // interface. Most of the work is done by its Java counterpart in
19 // AudioRecordInput.java. This class is created and lives on the Audio Manager 19 // AudioRecordInput.java. This class is created and lives on the Audio Manager
20 // thread but recorded audio buffers are delivered on a thread managed by 20 // thread but recorded audio buffers are delivered on a thread managed by
21 // the Java class. 21 // the Java class.
22 //
23 // The Java class makes use of AudioEffect features which are first available
24 // in Jelly Bean. It should not be instantiated running against earlier SDKs.
25 class MEDIA_EXPORT AudioRecordInputStream : public AudioInputStream { 22 class MEDIA_EXPORT AudioRecordInputStream : public AudioInputStream {
26 public: 23 public:
27 AudioRecordInputStream(AudioManagerAndroid* manager, 24 AudioRecordInputStream(AudioManagerAndroid* manager,
28 const AudioParameters& params); 25 const AudioParameters& params);
29 26
30 virtual ~AudioRecordInputStream(); 27 virtual ~AudioRecordInputStream();
31 28
32 // Implementation of AudioInputStream. 29 // Implementation of AudioInputStream.
33 virtual bool Open() OVERRIDE; 30 virtual bool Open() OVERRIDE;
34 virtual void Start(AudioInputCallback* callback) OVERRIDE; 31 virtual void Start(AudioInputCallback* callback) OVERRIDE;
(...skipping 28 matching lines...) Expand all
63 60
64 // Owned by j_audio_record_. 61 // Owned by j_audio_record_.
65 uint8* direct_buffer_address_; 62 uint8* direct_buffer_address_;
66 63
67 DISALLOW_COPY_AND_ASSIGN(AudioRecordInputStream); 64 DISALLOW_COPY_AND_ASSIGN(AudioRecordInputStream);
68 }; 65 };
69 66
70 } // namespace media 67 } // namespace media
71 68
72 #endif // MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_ 69 #endif // MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_
OLDNEW
« no previous file with comments | « trunk/src/media/audio/android/audio_manager_android.cc ('k') | trunk/src/media/audio/android/audio_record_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698