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

Unified Diff: Source/modules/webaudio/AudioBuffer.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: Fix as review 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/AudioBuffer.cpp
diff --git a/Source/modules/webaudio/AudioBuffer.cpp b/Source/modules/webaudio/AudioBuffer.cpp
index f29399138e6d073b782bb2391a8c85ba5cd2469e..34696c4027bba5ec31892deed34173be1f6c14d4 100644
--- a/Source/modules/webaudio/AudioBuffer.cpp
+++ b/Source/modules/webaudio/AudioBuffer.cpp
@@ -44,13 +44,13 @@ namespace blink {
float AudioBuffer::minAllowedSampleRate()
{
// crbug.com/344375
- return 3000;
+ return 3000.f;
Raymond Toy 2014/09/04 17:27:20 No .f required: http://www.chromium.org/blink/cod
KhNo 2014/09/05 05:03:25 Done.
}
float AudioBuffer::maxAllowedSampleRate()
{
// Windows can support up to this rate.
- return 192000;
+ return 192000.f;
Raymond Toy 2014/09/04 17:27:20 Same as line 47.
KhNo 2014/09/05 05:03:25 Done.
}
AudioBuffer* AudioBuffer::create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate)

Powered by Google App Engine
This is Rietveld 408576698