| 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 * | 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 ParamTypeBiquadFilterDetune, | 57 ParamTypeBiquadFilterDetune, |
| 58 ParamTypeDelayDelayTime, | 58 ParamTypeDelayDelayTime, |
| 59 ParamTypeDynamicsCompressorThreshold, | 59 ParamTypeDynamicsCompressorThreshold, |
| 60 ParamTypeDynamicsCompressorKnee, | 60 ParamTypeDynamicsCompressorKnee, |
| 61 ParamTypeDynamicsCompressorRatio, | 61 ParamTypeDynamicsCompressorRatio, |
| 62 ParamTypeDynamicsCompressorAttack, | 62 ParamTypeDynamicsCompressorAttack, |
| 63 ParamTypeDynamicsCompressorRelease, | 63 ParamTypeDynamicsCompressorRelease, |
| 64 ParamTypeGainGain, | 64 ParamTypeGainGain, |
| 65 ParamTypeOscillatorFrequency, | 65 ParamTypeOscillatorFrequency, |
| 66 ParamTypeOscillatorDetune, | 66 ParamTypeOscillatorDetune, |
| 67 ParamTypeStereoPannerPan | 67 ParamTypeStereoPannerPan, |
| 68 ParamTypePannerPositionX, |
| 69 ParamTypePannerPositionY, |
| 70 ParamTypePannerPositionZ, |
| 71 ParamTypePannerOrientationX, |
| 72 ParamTypePannerOrientationY, |
| 73 ParamTypePannerOrientationZ, |
| 74 ParamTypeAudioListenerPositionX, |
| 75 ParamTypeAudioListenerPositionY, |
| 76 ParamTypeAudioListenerPositionZ, |
| 77 ParamTypeAudioListenerForwardX, |
| 78 ParamTypeAudioListenerForwardY, |
| 79 ParamTypeAudioListenerForwardZ, |
| 80 ParamTypeAudioListenerUpX, |
| 81 ParamTypeAudioListenerUpY, |
| 82 ParamTypeAudioListenerUpZ, |
| 68 }; | 83 }; |
| 69 | 84 |
| 70 // AudioParamHandler is an actual implementation of web-exposed AudioParam | 85 // AudioParamHandler is an actual implementation of web-exposed AudioParam |
| 71 // interface. Each of AudioParam object creates and owns an AudioParamHandler, | 86 // interface. Each of AudioParam object creates and owns an AudioParamHandler, |
| 72 // and it is responsible for all of AudioParam tasks. An AudioParamHandler | 87 // and it is responsible for all of AudioParam tasks. An AudioParamHandler |
| 73 // object is owned by the originator AudioParam object, and some audio | 88 // object is owned by the originator AudioParam object, and some audio |
| 74 // processing classes have additional references. An AudioParamHandler can | 89 // processing classes have additional references. An AudioParamHandler can |
| 75 // outlive the owner AudioParam, and it never dies before the owner AudioParam | 90 // outlive the owner AudioParam, and it never dies before the owner AudioParam |
| 76 // dies. | 91 // dies. |
| 77 class AudioParamHandler final : public ThreadSafeRefCounted<AudioParamHandler>,
public AudioSummingJunction { | 92 class AudioParamHandler final : public ThreadSafeRefCounted<AudioParamHandler>,
public AudioSummingJunction { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 226 |
| 212 void warnIfOutsideRange(const String& paramMethd, float value); | 227 void warnIfOutsideRange(const String& paramMethd, float value); |
| 213 | 228 |
| 214 RefPtr<AudioParamHandler> m_handler; | 229 RefPtr<AudioParamHandler> m_handler; |
| 215 Member<AbstractAudioContext> m_context; | 230 Member<AbstractAudioContext> m_context; |
| 216 }; | 231 }; |
| 217 | 232 |
| 218 } // namespace blink | 233 } // namespace blink |
| 219 | 234 |
| 220 #endif // AudioParam_h | 235 #endif // AudioParam_h |
| OLD | NEW |