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

Unified Diff: media/audio/audio_output_controller.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
Index: media/audio/audio_output_controller.cc
diff --git a/media/audio/audio_output_controller.cc b/media/audio/audio_output_controller.cc
index 55ce9502ef7bddac261ae35ff364ecca3473b35c..ae72bdda8f5e52e39c2c879e5d68634decb7fed7 100644
--- a/media/audio/audio_output_controller.cc
+++ b/media/audio/audio_output_controller.cc
@@ -300,6 +300,8 @@ int AudioOutputController::OnMoreData(base::TimeDelta delay,
AudioBus* dest) {
TRACE_EVENT0("audio", "AudioOutputController::OnMoreData");
+ // NOTREACHED();
+
// Indicate that we haven't wedged (at least not indefinitely, WedgeCheck()
// may have already fired if OnMoreData() took an abnormal amount of time).
// Since this thread is the only writer of |on_more_io_data_called_| once the
@@ -501,6 +503,23 @@ std::pair<float, bool> AudioOutputController::ReadCurrentPowerAndClip() {
return power_monitor_.ReadCurrentPowerAndClip();
}
+void AudioOutputController::EnableDebugRecording(
+ const base::FilePath& file_name) {
+ CHECK_EQ(AudioManager::Get(), audio_manager_);
+ message_loop_->PostTask(
+ FROM_HERE, base::Bind(&AudioOutputController::DoEnableDebugRecording,
+ this, file_name));
+}
+
+void AudioOutputController::DoEnableDebugRecording(
+ const base::FilePath& file_name) {
+ stream_->EnableDebugRecording(file_name);
+}
+
+void AudioOutputController::DisableDebugRecording() {}
+
+void AudioOutputController::DoDisableDebugRecording() {}
+
void AudioOutputController::WedgeCheck() {
DCHECK(message_loop_->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698