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

Unified Diff: media/audio/audio_output_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_output_device.cc
diff --git a/media/audio/audio_output_device.cc b/media/audio/audio_output_device.cc
index 994fa40d24518a1c883f5fe062e6c55c9431f8c8..2f8f81130ecc686450425ac5824e8da959618291 100644
--- a/media/audio/audio_output_device.cc
+++ b/media/audio/audio_output_device.cc
@@ -270,10 +270,10 @@ void AudioOutputDevice::AudioThreadCallback::Process(int pending_data) {
audio_bus_.get(), audio_delay_milliseconds);
// Interleave, scale, and clip to int.
- // TODO(dalecurtis): Remove this when we have float everywhere.
- InterleaveFloatToInt(
- audio_bus_.get(), shared_memory_.memory(), num_frames,
- audio_parameters_.bits_per_sample() / 8);
+ // TODO(dalecurtis): Remove this when we have float everywhere:
+ // http://crbug.com/114700
+ audio_bus_->ToInterleaved(num_frames, audio_parameters_.bits_per_sample() / 8,
+ shared_memory_.memory());
// Let the host know we are done.
SetActualDataSizeInBytes(

Powered by Google App Engine
This is Rietveld 408576698