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

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

Issue 8818012: Remove the AudioManager singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Set svn eol properties for a couple of files Created 9 years 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 #include <CoreAudio/AudioHardware.h> 5 #include <CoreAudio/AudioHardware.h>
6 6
7 #include "base/mac/mac_util.h" 7 #include "base/mac/mac_util.h"
8 #include "base/mac/scoped_cftyperef.h" 8 #include "base/mac/scoped_cftyperef.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "media/audio/fake_audio_input_stream.h" 10 #include "media/audio/fake_audio_input_stream.h"
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 DCHECK(stream); 326 DCHECK(stream);
327 num_output_streams_--; 327 num_output_streams_--;
328 delete stream; 328 delete stream;
329 } 329 }
330 330
331 // Called by the stream when it has been released by calling Close(). 331 // Called by the stream when it has been released by calling Close().
332 void AudioManagerMac::ReleaseInputStream(AudioInputStream* stream) { 332 void AudioManagerMac::ReleaseInputStream(AudioInputStream* stream) {
333 delete stream; 333 delete stream;
334 } 334 }
335 335
336 // static 336 AudioManager* CreateAudioManager() {
337 AudioManager* AudioManager::CreateAudioManager() {
338 return new AudioManagerMac(); 337 return new AudioManagerMac();
339 } 338 }
OLDNEW
« no previous file with comments | « media/audio/mac/audio_low_latency_input_mac_unittest.cc ('k') | media/audio/mac/audio_output_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698