Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: media/audio/pulse/pulse_output.cc

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« media/audio/audio_output_controller.h ('K') | « media/audio/pulse/pulse_output.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« media/audio/audio_output_controller.h ('K') | « media/audio/pulse/pulse_output.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698