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

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

Issue 2452183003: Revert of Make more media APIs aware of |delay| and |delay_timestamp| (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_input_sync_writer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/audio_input_sync_writer.cc
diff --git a/content/browser/renderer_host/media/audio_input_sync_writer.cc b/content/browser/renderer_host/media/audio_input_sync_writer.cc
index b32399367781a503a2367f143300e5826766dc9c..e706934dfbcd52e3a517def4bfb8e41bfacb0520 100644
--- a/content/browser/renderer_host/media/audio_input_sync_writer.cc
+++ b/content/browser/renderer_host/media/audio_input_sync_writer.cc
@@ -12,12 +12,10 @@
#include "build/build_config.h"
#include "content/browser/renderer_host/media/media_stream_manager.h"
#include "content/public/browser/browser_thread.h"
-#include "media/audio/audio_device_thread.h"
using media::AudioBus;
using media::AudioInputBuffer;
using media::AudioInputBufferParameters;
-using Packet = media::AudioDeviceThread::Packet;
namespace content {
@@ -327,10 +325,8 @@
}
bool AudioInputSyncWriter::SignalDataWrittenAndUpdateCounters() {
- Packet packet = {
- current_segment_id_,
- (base::TimeTicks::Now() - base::TimeTicks()).InMicroseconds()};
- if (socket_->Send(&packet, sizeof(Packet)) != sizeof(Packet)) {
+ if (socket_->Send(&current_segment_id_, sizeof(current_segment_id_)) !=
+ sizeof(current_segment_id_)) {
const std::string error_message = "AISW: No room in socket buffer.";
LOG(WARNING) << error_message;
AddToNativeLog(error_message);
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_input_sync_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698