Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / platform / audio / Spatializer.cpp
blob025fc7218f77412d97a60b1e25e1a81be0c99ee1
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.
5 #include "config.h"
6 #if ENABLE(WEB_AUDIO)
7 #include "platform/audio/Spatializer.h"
9 #include "platform/audio/StereoPanner.h"
11 namespace blink {
13 PassOwnPtr<Spatializer> Spatializer::create(PanningModel model, float sampleRate)
15 switch (model) {
16 case PanningModelEqualPower:
17 return adoptPtr(new StereoPanner(sampleRate));
18 default:
19 ASSERT_NOT_REACHED();
20 return nullptr;
24 Spatializer::~Spatializer()
28 } // namespace blink
30 #endif // ENABLE(WEB_AUDIO)