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

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

Issue 23533045: Implement GetDefaultOutputDeviceID, GetAssociatedOutputDeviceID and ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix apparent sdk build problem Created 7 years, 3 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/audio_manager_unittest.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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 namespace media { 50 namespace media {
51 51
52 class AudioManagerMac; 52 class AudioManagerMac;
53 class DataBuffer; 53 class DataBuffer;
54 54
55 class AUAudioInputStream : public AgcAudioStream<AudioInputStream> { 55 class AUAudioInputStream : public AgcAudioStream<AudioInputStream> {
56 public: 56 public:
57 // The ctor takes all the usual parameters, plus |manager| which is the 57 // The ctor takes all the usual parameters, plus |manager| which is the
58 // the audio manager who is creating this object. 58 // the audio manager who is creating this object.
59 AUAudioInputStream(AudioManagerMac* manager, 59 AUAudioInputStream(AudioManagerMac* manager,
60 const AudioParameters& params, 60 const AudioParameters& input_params,
61 const AudioParameters& output_params,
61 AudioDeviceID audio_device_id); 62 AudioDeviceID audio_device_id);
62 // The dtor is typically called by the AudioManager only and it is usually 63 // The dtor is typically called by the AudioManager only and it is usually
63 // triggered by calling AudioInputStream::Close(). 64 // triggered by calling AudioInputStream::Close().
64 virtual ~AUAudioInputStream(); 65 virtual ~AUAudioInputStream();
65 66
66 // Implementation of AudioInputStream. 67 // Implementation of AudioInputStream.
67 virtual bool Open() OVERRIDE; 68 virtual bool Open() OVERRIDE;
68 virtual void Start(AudioInputCallback* callback) OVERRIDE; 69 virtual void Start(AudioInputCallback* callback) OVERRIDE;
69 virtual void Stop() OVERRIDE; 70 virtual void Stop() OVERRIDE;
70 virtual void Close() OVERRIDE; 71 virtual void Close() OVERRIDE;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // The client requests that the recorded data shall be delivered using 161 // The client requests that the recorded data shall be delivered using
161 // OnData() callbacks where each callback contains this amount of bytes. 162 // OnData() callbacks where each callback contains this amount of bytes.
162 int requested_size_bytes_; 163 int requested_size_bytes_;
163 164
164 DISALLOW_COPY_AND_ASSIGN(AUAudioInputStream); 165 DISALLOW_COPY_AND_ASSIGN(AUAudioInputStream);
165 }; 166 };
166 167
167 } // namespace media 168 } // namespace media
168 169
169 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_ 170 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_
OLDNEW
« no previous file with comments | « media/audio/audio_manager_unittest.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