OLD | NEW |
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/audio_manager_base.h" | 5 #include "media/audio/audio_manager_base.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 std::string AudioManagerBase::GetAssociatedOutputDeviceID( | 378 std::string AudioManagerBase::GetAssociatedOutputDeviceID( |
379 const std::string& input_device_id) { | 379 const std::string& input_device_id) { |
380 return ""; | 380 return ""; |
381 } | 381 } |
382 | 382 |
383 std::string AudioManagerBase::GetDefaultOutputDeviceID() { | 383 std::string AudioManagerBase::GetDefaultOutputDeviceID() { |
384 return ""; | 384 return ""; |
385 } | 385 } |
386 | 386 |
387 int AudioManagerBase::GetUserBufferSize() { | 387 int AudioManagerBase::GetUserBufferSize() { |
388 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); | 388 const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); |
389 int buffer_size = 0; | 389 int buffer_size = 0; |
390 std::string buffer_size_str(cmd_line->GetSwitchValueASCII( | 390 std::string buffer_size_str(cmd_line->GetSwitchValueASCII( |
391 switches::kAudioBufferSize)); | 391 switches::kAudioBufferSize)); |
392 if (base::StringToInt(buffer_size_str, &buffer_size) && buffer_size > 0) | 392 if (base::StringToInt(buffer_size_str, &buffer_size) && buffer_size > 0) |
393 return buffer_size; | 393 return buffer_size; |
394 | 394 |
395 return 0; | 395 return 0; |
396 } | 396 } |
397 | 397 |
398 scoped_ptr<AudioLog> AudioManagerBase::CreateAudioLog( | 398 scoped_ptr<AudioLog> AudioManagerBase::CreateAudioLog( |
399 AudioLogFactory::AudioComponent component) { | 399 AudioLogFactory::AudioComponent component) { |
400 return audio_log_factory_->CreateAudioLog(component); | 400 return audio_log_factory_->CreateAudioLog(component); |
401 } | 401 } |
402 | 402 |
403 void AudioManagerBase::SetHasKeyboardMic() { | 403 void AudioManagerBase::SetHasKeyboardMic() { |
404 NOTREACHED(); | 404 NOTREACHED(); |
405 } | 405 } |
406 | 406 |
407 } // namespace media | 407 } // namespace media |
OLD | NEW |