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

Unified Diff: content/browser/renderer_host/media/audio_input_sync_writer.h

Issue 1293503002: Check buffer index in shared memory for input audio. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Now the Win compile error should really be fixed. Created 5 years, 4 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: content/browser/renderer_host/media/audio_input_sync_writer.h
diff --git a/content/browser/renderer_host/media/audio_input_sync_writer.h b/content/browser/renderer_host/media/audio_input_sync_writer.h
index 1ace401441faec0bff55226b875064876ae94216..cc6c0f248e5e7568681b19ca35a4eb51bc4fdb89 100644
--- a/content/browser/renderer_host/media/audio_input_sync_writer.h
+++ b/content/browser/renderer_host/media/audio_input_sync_writer.h
@@ -35,10 +35,10 @@ class AudioInputSyncWriter : public media::AudioInputController::SyncWriter {
~AudioInputSyncWriter() override;
// media::AudioInputController::SyncWriter implementation.
- void UpdateRecordedBytes(uint32 bytes) override;
void Write(const media::AudioBus* data,
double volume,
- bool key_pressed) override;
+ bool key_pressed,
+ uint32 hardware_delay_bytes) override;
void Close() override;
bool Init();
@@ -67,6 +67,9 @@ class AudioInputSyncWriter : public media::AudioInputController::SyncWriter {
// Size in bytes of each audio bus.
const int audio_bus_memory_size_;
+ // Increasing ID used for audio buffers correct sequence at read side.
+ uint32_t next_buffer_id_;
+
// Vector of audio buses allocated during construction and deleted in the
// destructor.
ScopedVector<media::AudioBus> audio_buses_;
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_input_sync_writer.cc » ('j') | media/audio/audio_parameters.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698