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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/sample_rates.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/sample_rates.cc
diff --git a/media/audio/sample_rates.cc b/media/audio/sample_rates.cc
index 7fa62a79ed15291677630cf49a3653b8ebc61985..3757f8317ac3cec02e562b24e99d125958b3c276 100644
--- a/media/audio/sample_rates.cc
+++ b/media/audio/sample_rates.cc
@@ -44,6 +44,9 @@ bool ToAudioSampleRate(int sample_rate, AudioSampleRate* asr) {
case 192000:
*asr = k192000Hz;
return true;
+ case 24000:
+ *asr = k24000Hz;
+ return true;
}
return false;
}
« 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