| 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/linux/alsa_input.h" | 5 #include "media/audio/linux/alsa_input.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 if (error < 0) { | 330 if (error < 0) { |
| 331 DLOG(WARNING) << "Unable to get volume for " << device_name_; | 331 DLOG(WARNING) << "Unable to get volume for " << device_name_; |
| 332 return 0.0; | 332 return 0.0; |
| 333 } | 333 } |
| 334 | 334 |
| 335 return static_cast<double>(current_volume); | 335 return static_cast<double>(current_volume); |
| 336 } | 336 } |
| 337 | 337 |
| 338 void AlsaPcmInputStream::HandleError(const char* method, int error) { | 338 void AlsaPcmInputStream::HandleError(const char* method, int error) { |
| 339 LOG(WARNING) << method << ": " << wrapper_->StrError(error); | 339 LOG(WARNING) << method << ": " << wrapper_->StrError(error); |
| 340 callback_->OnError(this, error); | 340 callback_->OnError(this); |
| 341 } | 341 } |
| 342 | 342 |
| 343 } // namespace media | 343 } // namespace media |
| OLD | NEW |