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

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: Fix various compiler errors Created 8 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 | Annotate | Revision Log
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 25 matching lines...) Expand all
36 #ifndef MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_ 36 #ifndef MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_
37 #define MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_ 37 #define MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_
38 38
39 #include <AudioUnit/AudioUnit.h> 39 #include <AudioUnit/AudioUnit.h>
40 40
41 #include "base/memory/scoped_ptr.h" 41 #include "base/memory/scoped_ptr.h"
42 #include "base/synchronization/lock.h" 42 #include "base/synchronization/lock.h"
43 #include "media/audio/audio_io.h" 43 #include "media/audio/audio_io.h"
44 #include "media/audio/audio_parameters.h" 44 #include "media/audio/audio_parameters.h"
45 45
46 namespace media {
47
46 class AudioManagerMac; 48 class AudioManagerMac;
47 49
48 class AUAudioInputStream : public AudioInputStream { 50 class AUAudioInputStream : public AudioInputStream {
49 public: 51 public:
50 // The ctor takes all the usual parameters, plus |manager| which is the 52 // The ctor takes all the usual parameters, plus |manager| which is the
51 // the audio manager who is creating this object. 53 // the audio manager who is creating this object.
52 AUAudioInputStream(AudioManagerMac* manager, 54 AUAudioInputStream(AudioManagerMac* manager,
53 const AudioParameters& params, 55 const AudioParameters& params,
54 AudioDeviceID audio_device_id); 56 AudioDeviceID audio_device_id);
55 // The dtor is typically called by the AudioManager only and it is usually 57 // 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
136 // Fixed capture hardware latency in frames. 138 // Fixed capture hardware latency in frames.
137 double hardware_latency_frames_; 139 double hardware_latency_frames_;
138 140
139 // The number of channels in each frame of audio data, which is used 141 // The number of channels in each frame of audio data, which is used
140 // when querying the volume of each channel. 142 // when querying the volume of each channel.
141 int number_of_channels_in_frame_; 143 int number_of_channels_in_frame_;
142 144
143 DISALLOW_COPY_AND_ASSIGN(AUAudioInputStream); 145 DISALLOW_COPY_AND_ASSIGN(AUAudioInputStream);
144 }; 146 };
145 147
148 } // namespace media
149
146 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_ 150 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698