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

Side by Side Diff: media/audio/sample_rates.cc

Issue 554733002: Add support for 24kHz audio sample rate and remove the validation check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « media/audio/sample_rates.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/audio/sample_rates.h" 5 #include "media/audio/sample_rates.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace media { 9 namespace media {
10 10
(...skipping 26 matching lines...) Expand all
37 return true; 37 return true;
38 case 88200: 38 case 88200:
39 *asr = k88200Hz; 39 *asr = k88200Hz;
40 return true; 40 return true;
41 case 176400: 41 case 176400:
42 *asr = k176400Hz; 42 *asr = k176400Hz;
43 return true; 43 return true;
44 case 192000: 44 case 192000:
45 *asr = k192000Hz; 45 *asr = k192000Hz;
46 return true; 46 return true;
47 case 24000:
48 *asr = k24000Hz;
49 return true;
47 } 50 }
48 return false; 51 return false;
49 } 52 }
50 53
51 } // namespace media 54 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/sample_rates.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698