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

Unified Diff: components/copresence/mediums/audio/audio_recorder.h

Issue 637223011: Redesign the copresence audio handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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: components/copresence/mediums/audio/audio_recorder.h
diff --git a/components/copresence/mediums/audio/audio_recorder.h b/components/copresence/mediums/audio/audio_recorder.h
index 5c68eca1808b5c064be2f6426514559186b0adc8..4240fb361d0c8b4c352e4c62842f014d3bf6345b 100644
--- a/components/copresence/mediums/audio/audio_recorder.h
+++ b/components/copresence/mediums/audio/audio_recorder.h
@@ -28,12 +28,12 @@ namespace copresence {
class AudioRecorder : public media::AudioInputStream::AudioInputCallback,
public media::AudioConverter::InputCallback {
public:
- typedef base::Callback<void(const std::string&)> DecodeSamplesCallback;
+ typedef base::Callback<void(const std::string&)> RecordedSamplesCallback;
- explicit AudioRecorder(const DecodeSamplesCallback& decode_callback);
+ AudioRecorder();
// Initializes the object. Do not use this object before calling this method.
- virtual void Initialize();
+ virtual void Initialize(const RecordedSamplesCallback& decode_callback);
virtual void Record();
virtual void Stop();
@@ -92,7 +92,8 @@ class AudioRecorder : public media::AudioInputStream::AudioInputCallback,
bool is_recording_;
media::AudioInputStream* stream_;
- DecodeSamplesCallback decode_callback_;
+
+ RecordedSamplesCallback decode_callback_;
// ProvideInput will use this buffer as its source.
const media::AudioBus* temp_conversion_buffer_;

Powered by Google App Engine
This is Rietveld 408576698