OLD | NEW |
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/linux/pulse_output.h" | 5 #include "media/audio/linux/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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 *volume = volume_; | 411 *volume = volume_; |
412 } | 412 } |
413 | 413 |
414 uint32 PulseAudioOutputStream::RunDataCallback( | 414 uint32 PulseAudioOutputStream::RunDataCallback( |
415 uint8* dest, uint32 max_size, AudioBuffersState buffers_state) { | 415 uint8* dest, uint32 max_size, AudioBuffersState buffers_state) { |
416 if (source_callback_) | 416 if (source_callback_) |
417 return source_callback_->OnMoreData(this, dest, max_size, buffers_state); | 417 return source_callback_->OnMoreData(this, dest, max_size, buffers_state); |
418 | 418 |
419 return 0; | 419 return 0; |
420 } | 420 } |
OLD | NEW |