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

Unified Diff: media/base/audio_buffer_converter_unittest.cc

Issue 217923002: Make sure AudioBufferConverter uses aligned AudioBus channels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « media/base/audio_buffer_converter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_buffer_converter_unittest.cc
diff --git a/media/base/audio_buffer_converter_unittest.cc b/media/base/audio_buffer_converter_unittest.cc
index 80567cf990f1527e271e00c473f15600be8036c7..f346652fb8aff9522a32ee14d492d48254e1c645 100644
--- a/media/base/audio_buffer_converter_unittest.cc
+++ b/media/base/audio_buffer_converter_unittest.cc
@@ -12,6 +12,8 @@
namespace media {
+// Important: Use an odd buffer size here so SIMD issues are caught.
+const int kOutFrameSize = 441;
const int kOutSampleRate = 44100;
const ChannelLayout kOutChannelLayout = CHANNEL_LAYOUT_STEREO;
@@ -36,7 +38,7 @@ class AudioBufferConverterTest : public ::testing::Test {
kOutChannelLayout,
kOutSampleRate,
16,
- 512);
+ kOutFrameSize);
audio_buffer_converter_.reset(new AudioBufferConverter(output_params));
}
« no previous file with comments | « media/base/audio_buffer_converter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698