| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 ParamTypePannerOrientationZ, | 73 ParamTypePannerOrientationZ, |
| 74 ParamTypeAudioListenerPositionX, | 74 ParamTypeAudioListenerPositionX, |
| 75 ParamTypeAudioListenerPositionY, | 75 ParamTypeAudioListenerPositionY, |
| 76 ParamTypeAudioListenerPositionZ, | 76 ParamTypeAudioListenerPositionZ, |
| 77 ParamTypeAudioListenerForwardX, | 77 ParamTypeAudioListenerForwardX, |
| 78 ParamTypeAudioListenerForwardY, | 78 ParamTypeAudioListenerForwardY, |
| 79 ParamTypeAudioListenerForwardZ, | 79 ParamTypeAudioListenerForwardZ, |
| 80 ParamTypeAudioListenerUpX, | 80 ParamTypeAudioListenerUpX, |
| 81 ParamTypeAudioListenerUpY, | 81 ParamTypeAudioListenerUpY, |
| 82 ParamTypeAudioListenerUpZ, | 82 ParamTypeAudioListenerUpZ, |
| 83 ParamTypeConstantSourceValue, |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 // AudioParamHandler is an actual implementation of web-exposed AudioParam | 86 // AudioParamHandler is an actual implementation of web-exposed AudioParam |
| 86 // interface. Each of AudioParam object creates and owns an AudioParamHandler, | 87 // interface. Each of AudioParam object creates and owns an AudioParamHandler, |
| 87 // and it is responsible for all of AudioParam tasks. An AudioParamHandler | 88 // and it is responsible for all of AudioParam tasks. An AudioParamHandler |
| 88 // object is owned by the originator AudioParam object, and some audio | 89 // object is owned by the originator AudioParam object, and some audio |
| 89 // processing classes have additional references. An AudioParamHandler can | 90 // processing classes have additional references. An AudioParamHandler can |
| 90 // outlive the owner AudioParam, and it never dies before the owner AudioParam | 91 // outlive the owner AudioParam, and it never dies before the owner AudioParam |
| 91 // dies. | 92 // dies. |
| 92 class AudioParamHandler final : public ThreadSafeRefCounted<AudioParamHandler>,
public AudioSummingJunction { | 93 class AudioParamHandler final : public ThreadSafeRefCounted<AudioParamHandler>,
public AudioSummingJunction { |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 224 |
| 224 void warnIfOutsideRange(const String& paramMethd, float value); | 225 void warnIfOutsideRange(const String& paramMethd, float value); |
| 225 | 226 |
| 226 RefPtr<AudioParamHandler> m_handler; | 227 RefPtr<AudioParamHandler> m_handler; |
| 227 Member<BaseAudioContext> m_context; | 228 Member<BaseAudioContext> m_context; |
| 228 }; | 229 }; |
| 229 | 230 |
| 230 } // namespace blink | 231 } // namespace blink |
| 231 | 232 |
| 232 #endif // AudioParam_h | 233 #endif // AudioParam_h |
| OLD | NEW |