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

Unified Diff: media/audio/audio_output_mixer.h

Issue 10533004: Use aligned buffer in the audio mixer. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 6 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 | media/audio/audio_output_mixer.cc » ('j') | media/audio/audio_output_mixer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_mixer.h
===================================================================
--- media/audio/audio_output_mixer.h (revision 140416)
+++ media/audio/audio_output_mixer.h (working copy)
@@ -21,6 +21,7 @@
#include "media/audio/audio_manager.h"
#include "media/audio/audio_output_dispatcher.h"
#include "media/audio/audio_parameters.h"
+#include "media/base/decoder_buffer.h"
namespace media {
@@ -77,7 +78,7 @@
// Temporary buffer used when mixing. Allocated in the constructor
// to avoid constant allocation/deallocation in the callback.
- scoped_array<uint8> mixer_data_;
+ scoped_refptr<DecoderBuffer> mixer_data_;
// Used to post delayed tasks to ourselves that we cancel inside Shutdown().
base::WeakPtrFactory<AudioOutputMixer> weak_this_;
« no previous file with comments | « no previous file | media/audio/audio_output_mixer.cc » ('j') | media/audio/audio_output_mixer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698