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

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

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Code review (dalecurtis@ and maxmorin@). Created 3 years, 11 months 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/pulse/pulse_output.h
diff --git a/media/audio/pulse/pulse_output.h b/media/audio/pulse/pulse_output.h
index 8e86b0461ecc3984b92d57df7032b9d7a765a42e..ee57f947bdebd4b67b2e2e4d5e7f4d876ae5c07c 100644
--- a/media/audio/pulse/pulse_output.h
+++ b/media/audio/pulse/pulse_output.h
@@ -35,6 +35,8 @@ struct pa_stream;
struct pa_threaded_mainloop;
namespace media {
+
+class AudioDebugRecordingHelper;
class AudioManagerBase;
class PulseAudioOutputStream : public AudioOutputStream {
@@ -52,6 +54,8 @@ class PulseAudioOutputStream : public AudioOutputStream {
void Stop() override;
void SetVolume(double volume) override;
void GetVolume(double* volume) override;
+ void EnableDebugRecording(const base::FilePath& file_name) override;
+ void DisableDebugRecording() override;
private:
// Called by PulseAudio when |pa_stream_| change state. If an unexpected
@@ -93,6 +97,9 @@ class PulseAudioOutputStream : public AudioOutputStream {
// Container for retrieving data from AudioSourceCallback::OnMoreData().
std::unique_ptr<AudioBus> audio_bus_;
+ // Used for audio debug recordings.
+ std::unique_ptr<AudioDebugRecordingHelper> debug_recording_helper_;
+
base::ThreadChecker thread_checker_;
DISALLOW_COPY_AND_ASSIGN(PulseAudioOutputStream);

Powered by Google App Engine
This is Rietveld 408576698