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

Side by Side Diff: media/audio/mac/audio_input_mac.cc

Issue 9805001: Move media/audio files into media namespace (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/mac/audio_input_mac.h ('k') | media/audio/mac/audio_low_latency_input_mac.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/mac/audio_input_mac.h" 5 #include "media/audio/mac/audio_input_mac.h"
6 6
7 #include <CoreServices/CoreServices.h> 7 #include <CoreServices/CoreServices.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "media/audio/audio_util.h" 11 #include "media/audio/audio_util.h"
12 #include "media/audio/mac/audio_manager_mac.h" 12 #include "media/audio/mac/audio_manager_mac.h"
13 13
14 #if !defined(MAC_OS_X_VERSION_10_6) || \ 14 #if !defined(MAC_OS_X_VERSION_10_6) || \
15 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6 15 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6
16 enum { 16 enum {
17 kAudioQueueErr_EnqueueDuringReset = -66632 17 kAudioQueueErr_EnqueueDuringReset = -66632
18 }; 18 };
19 #endif 19 #endif
20 20
21 namespace media {
22
21 PCMQueueInAudioInputStream::PCMQueueInAudioInputStream( 23 PCMQueueInAudioInputStream::PCMQueueInAudioInputStream(
22 AudioManagerMac* manager, const AudioParameters& params) 24 AudioManagerMac* manager, const AudioParameters& params)
23 : manager_(manager), 25 : manager_(manager),
24 callback_(NULL), 26 callback_(NULL),
25 audio_queue_(NULL), 27 audio_queue_(NULL),
26 buffer_size_bytes_(0), 28 buffer_size_bytes_(0),
27 started_(false) { 29 started_(false) {
28 // We must have a manager. 30 // We must have a manager.
29 DCHECK(manager_); 31 DCHECK(manager_);
30 // A frame is one sample across all channels. In interleaved audio the per 32 // A frame is one sample across all channels. In interleaved audio the per
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // TODO(joth): PCMQueueOutAudioOutputStream uses callback_ to provide an 212 // TODO(joth): PCMQueueOutAudioOutputStream uses callback_ to provide an
211 // extra guard for this situation, but it seems to introduce more 213 // extra guard for this situation, but it seems to introduce more
212 // complications than it solves (memory barrier issues accessing it from 214 // complications than it solves (memory barrier issues accessing it from
213 // multiple threads, looses the means to indicate OnClosed to client). 215 // multiple threads, looses the means to indicate OnClosed to client).
214 // Should determine if we need to do something equivalent here. 216 // Should determine if we need to do something equivalent here.
215 return; 217 return;
216 } 218 }
217 HandleError(err); 219 HandleError(err);
218 } 220 }
219 } 221 }
222
223 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/mac/audio_input_mac.h ('k') | media/audio/mac/audio_low_latency_input_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698