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

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

Issue 9968054: Move media/audio files into media namespace (relanding) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « media/audio/android/opensles_input.h ('k') | media/audio/android/opensles_output.h » ('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 #include "media/audio/android/opensles_input.h" 5 #include "media/audio/android/opensles_input.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "media/audio/android/audio_manager_android.h" 8 #include "media/audio/android/audio_manager_android.h"
9 9
10 namespace media {
11
10 OpenSLESInputStream::OpenSLESInputStream(AudioManagerAndroid* audio_manager, 12 OpenSLESInputStream::OpenSLESInputStream(AudioManagerAndroid* audio_manager,
11 const AudioParameters& params) 13 const AudioParameters& params)
12 : audio_manager_(audio_manager), 14 : audio_manager_(audio_manager),
13 callback_(NULL), 15 callback_(NULL),
14 recorder_(NULL), 16 recorder_(NULL),
15 simple_buffer_queue_(NULL), 17 simple_buffer_queue_(NULL),
16 active_queue_(0), 18 active_queue_(0),
17 buffer_size_bytes_(0), 19 buffer_size_bytes_(0),
18 started_(false) { 20 started_(false) {
19 format_.formatType = SL_DATAFORMAT_PCM; 21 format_.formatType = SL_DATAFORMAT_PCM;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 audio_data_[i] = NULL; 283 audio_data_[i] = NULL;
282 } 284 }
283 } 285 }
284 } 286 }
285 287
286 void OpenSLESInputStream::HandleError(SLresult error) { 288 void OpenSLESInputStream::HandleError(SLresult error) {
287 DLOG(FATAL) << "OpenSLES error " << error; 289 DLOG(FATAL) << "OpenSLES error " << error;
288 if (callback_) 290 if (callback_)
289 callback_->OnError(this, error); 291 callback_->OnError(this, error);
290 } 292 }
293
294 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/android/opensles_input.h ('k') | media/audio/android/opensles_output.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698