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

Unified Diff: media/base/audio_hash.h

Issue 377803004: Fixes for re-enabling more MSVC level 4 warnings: media/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments Created 6 years, 5 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/audio/audio_output_controller.cc ('k') | media/base/audio_hash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_hash.h
diff --git a/media/base/audio_hash.h b/media/base/audio_hash.h
index 91d6edf90433c7388da0d032fb6fcd651f8f8f84..ec733832f7817d001a7caf60f310af975ccb4145 100644
--- a/media/base/audio_hash.h
+++ b/media/base/audio_hash.h
@@ -44,8 +44,7 @@ class MEDIA_EXPORT AudioHash {
// Storage for the audio hash. The number of buckets controls the importance
// of position in the hash. A higher number reduces the chance of false
// positives related to incorrect sample position. Value chosen by dice roll.
- enum { kHashBuckets = 6 };
- float audio_hash_[kHashBuckets];
+ float audio_hash_[6];
// The total number of samples processed per channel. Uses a uint32 instead
// of size_t so overflows on 64-bit and 32-bit machines are equivalent.
« no previous file with comments | « media/audio/audio_output_controller.cc ('k') | media/base/audio_hash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698