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

Side by Side Diff: media/audio/mac/audio_low_latency_input_mac.h

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.cc ('k') | media/audio/mac/audio_low_latency_input_mac.cc » ('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 // Implementation of AudioInputStream for Mac OS X using the special AUHAL 5 // Implementation of AudioInputStream for Mac OS X using the special AUHAL
6 // input Audio Unit present in OS 10.4 and later. 6 // input Audio Unit present in OS 10.4 and later.
7 // The AUHAL input Audio Unit is for low-latency audio I/O. 7 // The AUHAL input Audio Unit is for low-latency audio I/O.
8 // 8 //
9 // Overview of operation: 9 // Overview of operation:
10 // 10 //
(...skipping 28 matching lines...) Expand all
39 #include <AudioUnit/AudioUnit.h> 39 #include <AudioUnit/AudioUnit.h>
40 40
41 #include "base/atomicops.h" 41 #include "base/atomicops.h"
42 #include "base/memory/scoped_ptr.h" 42 #include "base/memory/scoped_ptr.h"
43 #include "base/synchronization/lock.h" 43 #include "base/synchronization/lock.h"
44 #include "base/time.h" 44 #include "base/time.h"
45 #include "media/audio/audio_io.h" 45 #include "media/audio/audio_io.h"
46 #include "media/audio/audio_input_stream_impl.h" 46 #include "media/audio/audio_input_stream_impl.h"
47 #include "media/audio/audio_parameters.h" 47 #include "media/audio/audio_parameters.h"
48 48
49 namespace media {
50
49 class AudioManagerMac; 51 class AudioManagerMac;
50 52
51 class AUAudioInputStream : public AudioInputStreamImpl { 53 class AUAudioInputStream : public AudioInputStreamImpl {
52 public: 54 public:
53 // The ctor takes all the usual parameters, plus |manager| which is the 55 // The ctor takes all the usual parameters, plus |manager| which is the
54 // the audio manager who is creating this object. 56 // the audio manager who is creating this object.
55 AUAudioInputStream(AudioManagerMac* manager, 57 AUAudioInputStream(AudioManagerMac* manager,
56 const AudioParameters& params, 58 const AudioParameters& params,
57 AudioDeviceID audio_device_id); 59 AudioDeviceID audio_device_id);
58 // The dtor is typically called by the AudioManager only and it is usually 60 // The dtor is typically called by the AudioManager only and it is usually
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Fixed capture hardware latency in frames. 141 // Fixed capture hardware latency in frames.
140 double hardware_latency_frames_; 142 double hardware_latency_frames_;
141 143
142 // The number of channels in each frame of audio data, which is used 144 // The number of channels in each frame of audio data, which is used
143 // when querying the volume of each channel. 145 // when querying the volume of each channel.
144 int number_of_channels_in_frame_; 146 int number_of_channels_in_frame_;
145 147
146 DISALLOW_COPY_AND_ASSIGN(AUAudioInputStream); 148 DISALLOW_COPY_AND_ASSIGN(AUAudioInputStream);
147 }; 149 };
148 150
151 } // namespace media
152
149 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_ 153 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_
OLDNEW
« no previous file with comments | « media/audio/mac/audio_input_mac.cc ('k') | media/audio/mac/audio_low_latency_input_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698