Chromium Code Reviews| Index: media/audio/pulse/pulse_output.cc |
| diff --git a/media/audio/pulse/pulse_output.cc b/media/audio/pulse/pulse_output.cc |
| index 5efa040c0d1b96a712a77cc309badbeef9db4f2a..b8ad0baec1223fe0630935c318fe24486b3c7045 100644 |
| --- a/media/audio/pulse/pulse_output.cc |
| +++ b/media/audio/pulse/pulse_output.cc |
| @@ -14,6 +14,8 @@ |
| #include "media/audio/pulse/pulse_util.h" |
| #include "media/base/audio_sample_types.h" |
| +#include "base/debug/stack_trace.h" |
| + |
| namespace media { |
| using pulse::AutoPulseLock; |
| @@ -59,6 +61,7 @@ PulseAudioOutputStream::PulseAudioOutputStream(const AudioParameters& params, |
| pa_stream_(NULL), |
| volume_(1.0f), |
| source_callback_(NULL) { |
| + // base::debug::StackTrace().Print(); |
| CHECK(params_.IsValid()); |
| audio_bus_ = AudioBus::Create(params_); |
| } |
| @@ -73,6 +76,7 @@ PulseAudioOutputStream::~PulseAudioOutputStream() { |
| bool PulseAudioOutputStream::Open() { |
| DCHECK(thread_checker_.CalledOnValidThread()); |
| + // base::debug::StackTrace().Print(); |
| return pulse::CreateOutputStream( |
| &pa_mainloop_, &pa_context_, &pa_stream_, params_, device_id_, |
| AudioManager::GetGlobalAppName(), &StreamNotifyCallback, |
| @@ -189,6 +193,7 @@ void PulseAudioOutputStream::Start(AudioSourceCallback* callback) { |
| DCHECK(thread_checker_.CalledOnValidThread()); |
| CHECK(callback); |
| CHECK(pa_stream_); |
| + // base::debug::StackTrace().Print(); |
| AutoPulseLock auto_lock(pa_mainloop_); |
| @@ -245,4 +250,9 @@ void PulseAudioOutputStream::GetVolume(double* volume) { |
| *volume = volume_; |
| } |
| +void PulseAudioOutputStream::EnableDebugRecording( |
| + const base::FilePath& file_name) {} |
|
Henrik Grunell
2016/12/16 14:12:59
Create and start the file writer here, if OK to mo
|
| + |
| +void PulseAudioOutputStream::DisableDebugRecording() {} |
| + |
| } // namespace media |