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

Unified Diff: Source/modules/webaudio/AudioContext.cpp

Issue 375383002: Extending supported sample rate from 3.0KHz to 192.0KHz for OfflineAudioContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update names and comment. 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
Index: Source/modules/webaudio/AudioContext.cpp
diff --git a/Source/modules/webaudio/AudioContext.cpp b/Source/modules/webaudio/AudioContext.cpp
index d5a9654632033839f5d9a89b4ae2fd73ce4d6ccd..ce5287914878c562a265a409416b995adafbe4a4 100644
--- a/Source/modules/webaudio/AudioContext.cpp
+++ b/Source/modules/webaudio/AudioContext.cpp
@@ -80,9 +80,7 @@ namespace blink {
bool AudioContext::isSampleRateRangeGood(float sampleRate)
{
- // FIXME: It would be nice if the minimum sample-rate could be less than 44.1KHz,
- // but that will require some fixes in HRTFPanner::fftSizeForSampleRate(), and some testing there.
- return sampleRate >= 44100 && sampleRate <= 96000;
+ return sampleRate >= AudioBuffer::minAllowedSampleRate() && sampleRate <= AudioBuffer::maxAllowedSampleRate();
}
// Don't allow more than this number of simultaneous AudioContexts talking to hardware.
« no previous file with comments | « LayoutTests/webaudio/offlineaudiocontext-constructor-expected.txt ('k') | Source/modules/webaudio/OfflineAudioContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698