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

Side by Side Diff: third_party/WebKit/Source/platform/audio/Distance.h

Issue 1557363002: Remove the WEB_AUDIO compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 15 matching lines...) Expand all
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef Distance_h 29 #ifndef Distance_h
30 #define Distance_h 30 #define Distance_h
31 31
32 #include "platform/PlatformExport.h" 32 #include "platform/PlatformExport.h"
33 #include "wtf/Allocator.h" 33 #include "wtf/Allocator.h"
34 #include "wtf/build_config.h" 34 #include "wtf/build_config.h"
35 35
36 #if ENABLE(WEB_AUDIO)
37
38 namespace blink { 36 namespace blink {
39 37
40 // Distance models are defined according to the OpenAL specification: 38 // Distance models are defined according to the OpenAL specification:
41 // http://connect.creativelabs.com/openal/Documentation/OpenAL%201.1%20Specifica tion.htm. 39 // http://connect.creativelabs.com/openal/Documentation/OpenAL%201.1%20Specifica tion.htm.
42 40
43 class PLATFORM_EXPORT DistanceEffect { 41 class PLATFORM_EXPORT DistanceEffect {
44 DISALLOW_NEW(); 42 DISALLOW_NEW();
45 public: 43 public:
46 enum ModelType { 44 enum ModelType {
47 ModelLinear = 0, 45 ModelLinear = 0,
(...skipping 30 matching lines...) Expand all
78 76
79 ModelType m_model; 77 ModelType m_model;
80 bool m_isClamped; 78 bool m_isClamped;
81 double m_refDistance; 79 double m_refDistance;
82 double m_maxDistance; 80 double m_maxDistance;
83 double m_rolloffFactor; 81 double m_rolloffFactor;
84 }; 82 };
85 83
86 } // namespace blink 84 } // namespace blink
87 85
88 #endif // ENABLE(WEB_AUDIO)
89
90 #endif // Distance_h 86 #endif // Distance_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/audio/DirectConvolver.cpp ('k') | third_party/WebKit/Source/platform/audio/Distance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698