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

Side by Side Diff: media/audio/mac/audio_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/linux/audio_manager_linux.cc ('k') | media/audio/mac/audio_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 #ifndef MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_ 5 #ifndef MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_
6 #define MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_ 6 #define MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_
7 7
8 #include <AudioToolbox/AudioQueue.h> 8 #include <AudioToolbox/AudioQueue.h>
9 #include <AudioToolbox/AudioFormat.h> 9 #include <AudioToolbox/AudioFormat.h>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "media/audio/audio_io.h" 12 #include "media/audio/audio_io.h"
13 #include "media/audio/audio_parameters.h" 13 #include "media/audio/audio_parameters.h"
14 14
15 namespace media {
16
15 class AudioManagerMac; 17 class AudioManagerMac;
16 18
17 // Implementation of AudioInputStream for Mac OS X using the audio queue service 19 // Implementation of AudioInputStream for Mac OS X using the audio queue service
18 // present in OS 10.5 and later. Design reflects PCMQueueOutAudioOutputStream. 20 // present in OS 10.5 and later. Design reflects PCMQueueOutAudioOutputStream.
19 class PCMQueueInAudioInputStream : public AudioInputStream { 21 class PCMQueueInAudioInputStream : public AudioInputStream {
20 public: 22 public:
21 // Parameters as per AudioManager::MakeAudioInputStream. 23 // Parameters as per AudioManager::MakeAudioInputStream.
22 PCMQueueInAudioInputStream(AudioManagerMac* manager, 24 PCMQueueInAudioInputStream(AudioManagerMac* manager,
23 const AudioParameters& params); 25 const AudioParameters& params);
24 virtual ~PCMQueueInAudioInputStream(); 26 virtual ~PCMQueueInAudioInputStream();
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Handle to the OS audio queue object. 73 // Handle to the OS audio queue object.
72 AudioQueueRef audio_queue_; 74 AudioQueueRef audio_queue_;
73 // Size of each of the buffers in |audio_buffers_| 75 // Size of each of the buffers in |audio_buffers_|
74 uint32 buffer_size_bytes_; 76 uint32 buffer_size_bytes_;
75 // True iff Start() has been called successfully. 77 // True iff Start() has been called successfully.
76 bool started_; 78 bool started_;
77 79
78 DISALLOW_COPY_AND_ASSIGN(PCMQueueInAudioInputStream); 80 DISALLOW_COPY_AND_ASSIGN(PCMQueueInAudioInputStream);
79 }; 81 };
80 82
83 } // namespace media
84
81 #endif // MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_ 85 #endif // MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_
OLDNEW
« no previous file with comments | « media/audio/linux/audio_manager_linux.cc ('k') | media/audio/mac/audio_input_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698