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

Side by Side Diff: media/audio/mac/audio_output_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_OUTPUT_MAC_H_ 5 #ifndef MEDIA_AUDIO_MAC_AUDIO_OUTPUT_MAC_H_
6 #define MEDIA_AUDIO_MAC_AUDIO_OUTPUT_MAC_H_ 6 #define MEDIA_AUDIO_MAC_AUDIO_OUTPUT_MAC_H_
7 7
8 #include <AudioToolbox/AudioFormat.h> 8 #include <AudioToolbox/AudioFormat.h>
9 #include <AudioToolbox/AudioQueue.h> 9 #include <AudioToolbox/AudioQueue.h>
10 #include <AudioUnit/AudioUnit.h> 10 #include <AudioUnit/AudioUnit.h>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/synchronization/lock.h" 13 #include "base/synchronization/lock.h"
14 #include "media/audio/audio_io.h" 14 #include "media/audio/audio_io.h"
15 #include "media/audio/audio_parameters.h" 15 #include "media/audio/audio_parameters.h"
16 16
17 namespace media {
18
17 class AudioManagerMac; 19 class AudioManagerMac;
18 20
19 // Implementation of AudioOuputStream for Mac OS X using the audio queue service 21 // Implementation of AudioOuputStream for Mac OS X using the audio queue service
20 // present in OS 10.5 and later. Audioqueue is the successor to the SoundManager 22 // present in OS 10.5 and later. Audioqueue is the successor to the SoundManager
21 // services but it is supported in 64 bits. 23 // services but it is supported in 64 bits.
22 class PCMQueueOutAudioOutputStream : public AudioOutputStream { 24 class PCMQueueOutAudioOutputStream : public AudioOutputStream {
23 public: 25 public:
24 // The ctor takes all the usual parameters, plus |manager| which is the 26 // The ctor takes all the usual parameters, plus |manager| which is the
25 // the audio manager who is creating this object. 27 // the audio manager who is creating this object.
26 PCMQueueOutAudioOutputStream(AudioManagerMac* manager, 28 PCMQueueOutAudioOutputStream(AudioManagerMac* manager,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Number of channels in device layout. 92 // Number of channels in device layout.
91 int num_core_channels_; 93 int num_core_channels_;
92 // A flag to determine if swizzle is needed from source to device layouts. 94 // A flag to determine if swizzle is needed from source to device layouts.
93 bool should_swizzle_; 95 bool should_swizzle_;
94 // A flag to determine if downmix is needed from source to device layouts. 96 // A flag to determine if downmix is needed from source to device layouts.
95 bool should_down_mix_; 97 bool should_down_mix_;
96 98
97 DISALLOW_COPY_AND_ASSIGN(PCMQueueOutAudioOutputStream); 99 DISALLOW_COPY_AND_ASSIGN(PCMQueueOutAudioOutputStream);
98 }; 100 };
99 101
102 } // namespace media
103
100 #endif // MEDIA_AUDIO_MAC_AUDIO_OUTPUT_MAC_H_ 104 #endif // MEDIA_AUDIO_MAC_AUDIO_OUTPUT_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698