| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 m_isListenerDirty(false), | 56 m_isListenerDirty(false), |
| 57 m_positionXValues(AudioUtilities::kRenderQuantumFrames), | 57 m_positionXValues(AudioUtilities::kRenderQuantumFrames), |
| 58 m_positionYValues(AudioUtilities::kRenderQuantumFrames), | 58 m_positionYValues(AudioUtilities::kRenderQuantumFrames), |
| 59 m_positionZValues(AudioUtilities::kRenderQuantumFrames), | 59 m_positionZValues(AudioUtilities::kRenderQuantumFrames), |
| 60 m_forwardXValues(AudioUtilities::kRenderQuantumFrames), | 60 m_forwardXValues(AudioUtilities::kRenderQuantumFrames), |
| 61 m_forwardYValues(AudioUtilities::kRenderQuantumFrames), | 61 m_forwardYValues(AudioUtilities::kRenderQuantumFrames), |
| 62 m_forwardZValues(AudioUtilities::kRenderQuantumFrames), | 62 m_forwardZValues(AudioUtilities::kRenderQuantumFrames), |
| 63 m_upXValues(AudioUtilities::kRenderQuantumFrames), | 63 m_upXValues(AudioUtilities::kRenderQuantumFrames), |
| 64 m_upYValues(AudioUtilities::kRenderQuantumFrames), | 64 m_upYValues(AudioUtilities::kRenderQuantumFrames), |
| 65 m_upZValues(AudioUtilities::kRenderQuantumFrames) { | 65 m_upZValues(AudioUtilities::kRenderQuantumFrames) { |
| 66 // Initialize the cached values with the current values. Thus, we don't need
to notify any | 66 // Initialize the cached values with the current values. Thus, we don't need |
| 67 // panners because we haved moved. | 67 // to notify any panners because we haved moved. |
| 68 m_lastPosition = position(); | 68 m_lastPosition = position(); |
| 69 m_lastForward = orientation(); | 69 m_lastForward = orientation(); |
| 70 m_lastUp = upVector(); | 70 m_lastUp = upVector(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 AudioListener::~AudioListener() {} | 73 AudioListener::~AudioListener() {} |
| 74 | 74 |
| 75 DEFINE_TRACE(AudioListener) { | 75 DEFINE_TRACE(AudioListener) { |
| 76 visitor->trace(m_positionX); | 76 visitor->trace(m_positionX); |
| 77 visitor->trace(m_positionY); | 77 visitor->trace(m_positionY); |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 291 |
| 292 void AudioListener::setDopplerFactor(double dopplerFactor) { | 292 void AudioListener::setDopplerFactor(double dopplerFactor) { |
| 293 m_dopplerFactor = dopplerFactor; | 293 m_dopplerFactor = dopplerFactor; |
| 294 } | 294 } |
| 295 | 295 |
| 296 void AudioListener::setSpeedOfSound(double speedOfSound) { | 296 void AudioListener::setSpeedOfSound(double speedOfSound) { |
| 297 m_speedOfSound = speedOfSound; | 297 m_speedOfSound = speedOfSound; |
| 298 } | 298 } |
| 299 | 299 |
| 300 } // namespace blink | 300 } // namespace blink |
| OLD | NEW |