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

Side by Side Diff: third_party/WebKit/Source/platform/audio/HRTFDatabase.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 19 matching lines...) Expand all
30 #define HRTFDatabase_h 30 #define HRTFDatabase_h
31 31
32 #include "platform/audio/HRTFElevation.h" 32 #include "platform/audio/HRTFElevation.h"
33 #include "wtf/Allocator.h" 33 #include "wtf/Allocator.h"
34 #include "wtf/Forward.h" 34 #include "wtf/Forward.h"
35 #include "wtf/Noncopyable.h" 35 #include "wtf/Noncopyable.h"
36 #include "wtf/OwnPtr.h" 36 #include "wtf/OwnPtr.h"
37 #include "wtf/PassRefPtr.h" 37 #include "wtf/PassRefPtr.h"
38 #include "wtf/Vector.h" 38 #include "wtf/Vector.h"
39 39
40 #if ENABLE(WEB_AUDIO)
41
42 namespace blink { 40 namespace blink {
43 41
44 class HRTFKernel; 42 class HRTFKernel;
45 43
46 class PLATFORM_EXPORT HRTFDatabase { 44 class PLATFORM_EXPORT HRTFDatabase {
47 USING_FAST_MALLOC(HRTFDatabase); 45 USING_FAST_MALLOC(HRTFDatabase);
48 WTF_MAKE_NONCOPYABLE(HRTFDatabase); 46 WTF_MAKE_NONCOPYABLE(HRTFDatabase);
49 public: 47 public:
50 static PassOwnPtr<HRTFDatabase> create(float sampleRate); 48 static PassOwnPtr<HRTFDatabase> create(float sampleRate);
51 49
(...skipping 27 matching lines...) Expand all
79 77
80 // Returns the index for the correct HRTFElevation given the elevation angle . 78 // Returns the index for the correct HRTFElevation given the elevation angle .
81 static unsigned indexFromElevationAngle(double); 79 static unsigned indexFromElevationAngle(double);
82 80
83 Vector<OwnPtr<HRTFElevation>> m_elevations; 81 Vector<OwnPtr<HRTFElevation>> m_elevations;
84 float m_sampleRate; 82 float m_sampleRate;
85 }; 83 };
86 84
87 } // namespace blink 85 } // namespace blink
88 86
89 #endif // ENABLE(WEB_AUDIO)
90
91 #endif // HRTFDatabase_h 87 #endif // HRTFDatabase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/audio/FFTFrameStub.cpp ('k') | third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698