#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/modules/webaudio/audio_param_handler.h"
#include "build/build_config.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/modules/webaudio/audio_graph_tracer.h"
#include "third_party/blink/renderer/modules/webaudio/audio_node.h"
#include "third_party/blink/renderer/modules/webaudio/audio_node_output.h"
#include "third_party/blink/renderer/platform/audio/audio_utilities.h"
#include "third_party/blink/renderer/platform/audio/vector_math.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/wtf/math_extras.h"
#if defined(ARCH_CPU_X86_FAMILY)
#include <xmmintrin.h>
#elif defined(CPU_ARM_NEON)
#include <arm_neon.h>
#endif
namespace blink {
namespace {
void HandleNaNValues(float* values,
unsigned number_of_values,
float default_value) { … }
}
AudioParamHandler::AudioParamHandler(BaseAudioContext& context,
AudioParamType param_type,
double default_value,
AutomationRate rate,
AutomationRateMode rate_mode,
float min_value,
float max_value)
: … { … }
AudioDestinationHandler& AudioParamHandler::DestinationHandler() const { … }
void AudioParamHandler::SetParamType(AudioParamType param_type) { … }
void AudioParamHandler::SetCustomParamName(const String name) { … }
String AudioParamHandler::GetParamName() const { … }
float AudioParamHandler::Value() { … }
void AudioParamHandler::SetIntrinsicValue(float new_value) { … }
void AudioParamHandler::SetValue(float value) { … }
float AudioParamHandler::FinalValue() { … }
void AudioParamHandler::CalculateSampleAccurateValues(
float* values,
unsigned number_of_values) { … }
void AudioParamHandler::CalculateFinalValues(float* values,
unsigned number_of_values,
bool sample_accurate) { … }
void AudioParamHandler::CalculateTimelineValues(float* values,
unsigned number_of_values) { … }
}