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/pulse/pulse_output.h" | 5 #include "media/audio/pulse/pulse_output.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "media/audio/audio_parameters.h" | 9 #include "media/audio/audio_parameters.h" |
10 #include "media/audio/audio_util.h" | 10 #include "media/audio/audio_util.h" |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 | 417 |
418 void PulseAudioOutputStream::GetVolume(double* volume) { | 418 void PulseAudioOutputStream::GetVolume(double* volume) { |
419 DCHECK_EQ(manager_->GetMessageLoop(), MessageLoop::current()); | 419 DCHECK_EQ(manager_->GetMessageLoop(), MessageLoop::current()); |
420 | 420 |
421 *volume = volume_; | 421 *volume = volume_; |
422 } | 422 } |
423 | 423 |
424 uint32 PulseAudioOutputStream::RunDataCallback( | 424 uint32 PulseAudioOutputStream::RunDataCallback( |
425 uint8* dest, uint32 max_size, AudioBuffersState buffers_state) { | 425 uint8* dest, uint32 max_size, AudioBuffersState buffers_state) { |
426 if (source_callback_) | 426 if (source_callback_) |
427 return source_callback_->OnMoreData(this, dest, max_size, buffers_state); | 427 return source_callback_->OnMoreData(dest, max_size, buffers_state); |
428 | 428 |
429 return 0; | 429 return 0; |
430 } | 430 } |
431 | 431 |
432 } // namespace media | 432 } // namespace media |
OLD | NEW |