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

Side by Side Diff: Source/platform/audio/Spatializer.cpp

Issue 691143007: Implement StereoPannerNode for robust stereo panning (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6
7 #if ENABLE(WEB_AUDIO)
8
9 #include "platform/audio/Spatializer.h"
10
11 #include "platform/audio/StereoPanner.h"
12
13 namespace blink {
14
15 Spatializer* Spatializer::create(PanningModel model, float sampleRate)
16 {
17 Spatializer* panner;
18
19 switch (model) {
20 case PanningModelEqualPower:
21 panner = new StereoPanner(sampleRate);
22 break;
23 default:
24 ASSERT_NOT_REACHED();
25 return nullptr;
26 }
27
28 return panner;
29 }
30
31 } // namespace blink
32
33 #endif // ENABLE(WEB_AUDIO)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698