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

Side by Side Diff: media/audio/openbsd/audio_manager_openbsd.cc

Issue 8681005: enable the device selection for openbsd too to be in sync with linux (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « media/audio/openbsd/audio_manager_openbsd.h ('k') | no next file » | 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) 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 "media/audio/openbsd/audio_manager_openbsd.h" 5 #include "media/audio/openbsd/audio_manager_openbsd.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "media/audio/audio_output_dispatcher.h" 9 #include "media/audio/audio_output_dispatcher.h"
10 #include "media/audio/fake_audio_input_stream.h" 10 #include "media/audio/fake_audio_input_stream.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 active_streams_.insert(stream); 67 active_streams_.insert(stream);
68 return stream; 68 return stream;
69 } 69 }
70 #endif 70 #endif
71 71
72 NOTIMPLEMENTED(); 72 NOTIMPLEMENTED();
73 return NULL; 73 return NULL;
74 } 74 }
75 75
76 AudioInputStream* AudioManagerOpenBSD::MakeAudioInputStream( 76 AudioInputStream* AudioManagerOpenBSD::MakeAudioInputStream(
77 const AudioParameters& params) { 77 const AudioParameters& params, const std::string& device_id) {
78 NOTIMPLEMENTED(); 78 NOTIMPLEMENTED();
79 return NULL; 79 return NULL;
80 } 80 }
81 81
82 AudioManagerOpenBSD::AudioManagerOpenBSD() { 82 AudioManagerOpenBSD::AudioManagerOpenBSD() {
83 } 83 }
84 84
85 AudioManagerOpenBSD::~AudioManagerOpenBSD() { 85 AudioManagerOpenBSD::~AudioManagerOpenBSD() {
86 // Make sure we stop the thread first. If we allow the default destructor to 86 // Make sure we stop the thread first. If we allow the default destructor to
87 // destroy the members, we may destroy audio streams before stopping the 87 // destroy the members, we may destroy audio streams before stopping the
(...skipping 26 matching lines...) Expand all
114 if (stream) { 114 if (stream) {
115 active_streams_.erase(stream); 115 active_streams_.erase(stream);
116 delete stream; 116 delete stream;
117 } 117 }
118 } 118 }
119 119
120 // static 120 // static
121 AudioManager* AudioManager::CreateAudioManager() { 121 AudioManager* AudioManager::CreateAudioManager() {
122 return new AudioManagerOpenBSD(); 122 return new AudioManagerOpenBSD();
123 } 123 }
OLDNEW
« no previous file with comments | « media/audio/openbsd/audio_manager_openbsd.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698