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

Unified Diff: media/audio/audio_input_device.cc

Issue 10824304: Upgrade AudioBus to support wrapping, interleaving. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 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: media/audio/audio_input_device.cc
diff --git a/media/audio/audio_input_device.cc b/media/audio/audio_input_device.cc
index b1ab6f8266fd4819201028a310391071179f4a8a..41bd4914fd0776ada8391608445c6a1ac6896e79 100644
--- a/media/audio/audio_input_device.cc
+++ b/media/audio/audio_input_device.cc
@@ -9,7 +9,6 @@
#include "base/threading/thread_restrictions.h"
#include "base/time.h"
#include "media/audio/audio_manager_base.h"
-#include "media/audio/audio_util.h"
#include "media/base/audio_bus.h"
namespace media {
@@ -333,15 +332,7 @@ void AudioInputDevice::AudioThreadCallback::Process(int pending_data) {
// Deinterleave each channel and convert to 32-bit floating-point
// with nominal range -1.0 -> +1.0.
- for (int channel_index = 0; channel_index < audio_bus_->channels();
- ++channel_index) {
- DeinterleaveAudioChannel(memory,
- audio_bus_->channel(channel_index),
- audio_bus_->channels(),
- channel_index,
- bytes_per_sample,
- audio_bus_->frames());
- }
+ audio_bus_->FromInterleaved(memory, audio_bus_->frames(), bytes_per_sample);
// Deliver captured data to the client in floating point format
// and update the audio-delay measurement.

Powered by Google App Engine
This is Rietveld 408576698