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

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: Comments. 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..cc4c4cfb009b95e444d7ac6444f13f206b1d3eea 100644
--- a/media/audio/audio_output_device.cc
+++ b/media/audio/audio_output_device.cc
@@ -271,9 +271,8 @@ void AudioOutputDevice::AudioThreadCallback::Process(int pending_data) {
// Interleave, scale, and clip to int.
// TODO(dalecurtis): Remove this when we have float everywhere.
scherkus (not reviewing) 2012/08/16 18:58:19 reference bug?
DaleCurtis 2012/08/17 02:15:58 Done.
- InterleaveFloatToInt(
- audio_bus_.get(), shared_memory_.memory(), num_frames,
- audio_parameters_.bits_per_sample() / 8);
+ 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