| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 } | 74 } |
| 75 | 75 |
| 76 DynamicsCompressorHandler::~DynamicsCompressorHandler() | 76 DynamicsCompressorHandler::~DynamicsCompressorHandler() |
| 77 { | 77 { |
| 78 uninitialize(); | 78 uninitialize(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 void DynamicsCompressorHandler::process(size_t framesToProcess) | 81 void DynamicsCompressorHandler::process(size_t framesToProcess) |
| 82 { | 82 { |
| 83 AudioBus* outputBus = output(0).bus(); | 83 AudioBus* outputBus = output(0).bus(); |
| 84 ASSERT(outputBus); | 84 DCHECK(outputBus); |
| 85 | 85 |
| 86 float threshold = m_threshold->value(); | 86 float threshold = m_threshold->value(); |
| 87 float knee = m_knee->value(); | 87 float knee = m_knee->value(); |
| 88 float ratio = m_ratio->value(); | 88 float ratio = m_ratio->value(); |
| 89 float attack = m_attack->value(); | 89 float attack = m_attack->value(); |
| 90 float release = m_release->value(); | 90 float release = m_release->value(); |
| 91 | 91 |
| 92 m_dynamicsCompressor->setParameterValue(DynamicsCompressor::ParamThreshold,
threshold); | 92 m_dynamicsCompressor->setParameterValue(DynamicsCompressor::ParamThreshold,
threshold); |
| 93 m_dynamicsCompressor->setParameterValue(DynamicsCompressor::ParamKnee, knee)
; | 93 m_dynamicsCompressor->setParameterValue(DynamicsCompressor::ParamKnee, knee)
; |
| 94 m_dynamicsCompressor->setParameterValue(DynamicsCompressor::ParamRatio, rati
o); | 94 m_dynamicsCompressor->setParameterValue(DynamicsCompressor::ParamRatio, rati
o); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 return m_attack; | 196 return m_attack; |
| 197 } | 197 } |
| 198 | 198 |
| 199 AudioParam* DynamicsCompressorNode::release() const | 199 AudioParam* DynamicsCompressorNode::release() const |
| 200 { | 200 { |
| 201 return m_release; | 201 return m_release; |
| 202 } | 202 } |
| 203 | 203 |
| 204 } // namespace blink | 204 } // namespace blink |
| 205 | 205 |
| OLD | NEW |