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

Side by Side Diff: Source/modules/webaudio/PannerNode.h

Issue 231033002: Remove unused AudioParams in PannerNode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | Source/modules/webaudio/PannerNode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 #ifndef PannerNode_h 25 #ifndef PannerNode_h
26 #define PannerNode_h 26 #define PannerNode_h
27 27
28 #include "platform/audio/AudioBus.h" 28 #include "platform/audio/AudioBus.h"
29 #include "platform/audio/Cone.h" 29 #include "platform/audio/Cone.h"
30 #include "platform/audio/Distance.h" 30 #include "platform/audio/Distance.h"
31 #include "platform/audio/HRTFDatabaseLoader.h" 31 #include "platform/audio/HRTFDatabaseLoader.h"
32 #include "platform/audio/Panner.h" 32 #include "platform/audio/Panner.h"
33 #include "modules/webaudio/AudioListener.h" 33 #include "modules/webaudio/AudioListener.h"
34 #include "modules/webaudio/AudioNode.h" 34 #include "modules/webaudio/AudioNode.h"
35 #include "modules/webaudio/AudioParam.h"
36 #include "platform/geometry/FloatPoint3D.h" 35 #include "platform/geometry/FloatPoint3D.h"
37 #include "wtf/HashMap.h" 36 #include "wtf/HashMap.h"
38 #include "wtf/OwnPtr.h" 37 #include "wtf/OwnPtr.h"
39 38
40 namespace WebCore { 39 namespace WebCore {
41 40
42 // PannerNode is an AudioNode with one input and one output. 41 // PannerNode is an AudioNode with one input and one output.
43 // It positions a sound in 3D space, with the exact effect dependent on the pann ing model. 42 // It positions a sound in 3D space, with the exact effect dependent on the pann ing model.
44 // It has a position and an orientation in 3D space which is relative to the pos ition and orientation of the context's AudioListener. 43 // It has a position and an orientation in 3D space which is relative to the pos ition and orientation of the context's AudioListener.
45 // A distance effect will attenuate the gain as the position moves away from the listener. 44 // A distance effect will attenuate the gain as the position moves away from the listener.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 FloatPoint3D m_position; 151 FloatPoint3D m_position;
153 FloatPoint3D m_orientation; 152 FloatPoint3D m_orientation;
154 FloatPoint3D m_velocity; 153 FloatPoint3D m_velocity;
155 154
156 // Cached source location information 155 // Cached source location information
157 FloatPoint3D m_cachedPosition; 156 FloatPoint3D m_cachedPosition;
158 FloatPoint3D m_cachedOrientation; 157 FloatPoint3D m_cachedOrientation;
159 FloatPoint3D m_cachedVelocity; 158 FloatPoint3D m_cachedVelocity;
160 159
161 // Gain 160 // Gain
162 RefPtr<AudioParam> m_distanceGain;
163 RefPtr<AudioParam> m_coneGain;
164 DistanceEffect m_distanceEffect; 161 DistanceEffect m_distanceEffect;
165 ConeEffect m_coneEffect; 162 ConeEffect m_coneEffect;
166 float m_lastGain; 163 float m_lastGain;
167 164
168 double m_cachedAzimuth; 165 double m_cachedAzimuth;
169 double m_cachedElevation; 166 double m_cachedElevation;
170 float m_cachedDistanceConeGain; 167 float m_cachedDistanceConeGain;
171 double m_cachedDopplerRate; 168 double m_cachedDopplerRate;
172 169
173 // Cached listener parameters after processing. 170 // Cached listener parameters after processing.
174 RefPtr<AudioListener> m_cachedListener; 171 RefPtr<AudioListener> m_cachedListener;
175 172
176 RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader; 173 RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader;
177 174
178 // AudioContext's connection count 175 // AudioContext's connection count
179 unsigned m_connectionCount; 176 unsigned m_connectionCount;
180 177
181 // Synchronize process() with setting of the panning model, distance model a nd caching of the source location/orientation info. 178 // Synchronize process() with setting of the panning model, distance model a nd caching of the source location/orientation info.
182 mutable Mutex m_processLock; 179 mutable Mutex m_processLock;
183 }; 180 };
184 181
185 } // namespace WebCore 182 } // namespace WebCore
186 183
187 #endif // PannerNode_h 184 #endif // PannerNode_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/webaudio/PannerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698