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

Unified Diff: media/audio/audio_output_mixer.h

Issue 10466007: Fix wrong timing when audio is muted. (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 140286)
+++ media/audio/audio_output_mixer.h (working copy)
@@ -77,7 +77,12 @@
// Temporary buffer used when mixing. Allocated in the constructor
// to avoid constant allocation/deallocation in the callback.
+ // Low-level multimedia code may work better when data is aligned, as it can
+ // use SSEx/AVX intrinsics. We don't want to use platform-specific aligned
+ // memory allocator, it does not work well with scoped_ptr. Just allocate
+ // slightly more and use raw pointer to the aligned data.
scoped_array<uint8> mixer_data_;
+ uint8* aligned_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