Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.cpp

Issue 2159403002: Replace ASSERT with DCHECK in WebAudio (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp ('k') | third_party/WebKit/Source/modules/webaudio/GainNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698