| OLD | NEW |
| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 double m_cachedElevation; | 141 double m_cachedElevation; |
| 142 float m_cachedDistanceConeGain; | 142 float m_cachedDistanceConeGain; |
| 143 | 143 |
| 144 // Synchronize process() with setting of the panning model, source's locatio
n information, listener, distance parameters and sound cones. | 144 // Synchronize process() with setting of the panning model, source's locatio
n information, listener, distance parameters and sound cones. |
| 145 mutable Mutex m_processLock; | 145 mutable Mutex m_processLock; |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 class PannerNode final : public AudioNode { | 148 class PannerNode final : public AudioNode { |
| 149 DEFINE_WRAPPERTYPEINFO(); | 149 DEFINE_WRAPPERTYPEINFO(); |
| 150 public: | 150 public: |
| 151 static PannerNode* create(AbstractAudioContext&, float sampleRate); | 151 static PannerNode* create(AbstractAudioContext&, ExceptionState&); |
| 152 PannerHandler& pannerHandler() const; | 152 PannerHandler& pannerHandler() const; |
| 153 | 153 |
| 154 String panningModel() const; | 154 String panningModel() const; |
| 155 void setPanningModel(const String&); | 155 void setPanningModel(const String&); |
| 156 void setPosition(float x, float y, float z); | 156 void setPosition(float x, float y, float z); |
| 157 void setOrientation(float x, float y, float z); | 157 void setOrientation(float x, float y, float z); |
| 158 void setVelocity(float x, float y, float z); | 158 void setVelocity(float x, float y, float z); |
| 159 String distanceModel() const; | 159 String distanceModel() const; |
| 160 void setDistanceModel(const String&); | 160 void setDistanceModel(const String&); |
| 161 double refDistance() const; | 161 double refDistance() const; |
| 162 void setRefDistance(double); | 162 void setRefDistance(double); |
| 163 double maxDistance() const; | 163 double maxDistance() const; |
| 164 void setMaxDistance(double); | 164 void setMaxDistance(double); |
| 165 double rolloffFactor() const; | 165 double rolloffFactor() const; |
| 166 void setRolloffFactor(double); | 166 void setRolloffFactor(double); |
| 167 double coneInnerAngle() const; | 167 double coneInnerAngle() const; |
| 168 void setConeInnerAngle(double); | 168 void setConeInnerAngle(double); |
| 169 double coneOuterAngle() const; | 169 double coneOuterAngle() const; |
| 170 void setConeOuterAngle(double); | 170 void setConeOuterAngle(double); |
| 171 double coneOuterGain() const; | 171 double coneOuterGain() const; |
| 172 void setConeOuterGain(double); | 172 void setConeOuterGain(double); |
| 173 | 173 |
| 174 private: | 174 private: |
| 175 PannerNode(AbstractAudioContext&, float sampleRate); | 175 PannerNode(AbstractAudioContext&); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace blink | 178 } // namespace blink |
| 179 | 179 |
| 180 #endif // PannerNode_h | 180 #endif // PannerNode_h |
| OLD | NEW |