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

Side by Side Diff: media/audio/mac/audio_output_mac.cc

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 #include "media/audio/mac/audio_output_mac.h" 5 #include "media/audio/mac/audio_output_mac.h"
6 6
7 #include <CoreServices/CoreServices.h> 7 #include <CoreServices/CoreServices.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "media/audio/audio_util.h" 13 #include "media/audio/audio_util.h"
14 #include "media/audio/mac/audio_manager_mac.h" 14 #include "media/audio/mac/audio_manager_mac.h"
15 15
16 namespace media {
17
16 // A custom data structure to store information an AudioQueue buffer. 18 // A custom data structure to store information an AudioQueue buffer.
17 struct AudioQueueUserData { 19 struct AudioQueueUserData {
18 AudioQueueUserData() : empty_buffer(false) {} 20 AudioQueueUserData() : empty_buffer(false) {}
19 bool empty_buffer; 21 bool empty_buffer;
20 }; 22 };
21 23
22 // Overview of operation: 24 // Overview of operation:
23 // 1) An object of PCMQueueOutAudioOutputStream is created by the AudioManager 25 // 1) An object of PCMQueueOutAudioOutputStream is created by the AudioManager
24 // factory: audio_man->MakeAudioStream(). This just fills some structure. 26 // factory: audio_man->MakeAudioStream(). This just fills some structure.
25 // 2) Next some thread will call Open(), at that point the underliying OS 27 // 2) Next some thread will call Open(), at that point the underliying OS
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 void PCMQueueOutAudioOutputStream::SetSource(AudioSourceCallback* source) { 522 void PCMQueueOutAudioOutputStream::SetSource(AudioSourceCallback* source) {
521 base::AutoLock lock(source_lock_); 523 base::AutoLock lock(source_lock_);
522 source_ = source; 524 source_ = source;
523 } 525 }
524 526
525 AudioOutputStream::AudioSourceCallback* 527 AudioOutputStream::AudioSourceCallback*
526 PCMQueueOutAudioOutputStream::GetSource() { 528 PCMQueueOutAudioOutputStream::GetSource() {
527 base::AutoLock lock(source_lock_); 529 base::AutoLock lock(source_lock_);
528 return source_; 530 return source_;
529 } 531 }
532
533 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698