#include "third_party/blink/renderer/modules/webaudio/analyser_handler.h"
#include "third_party/blink/renderer/modules/webaudio/audio_node_input.h"
#include "third_party/blink/renderer/modules/webaudio/audio_node_output.h"
#include "third_party/blink/renderer/modules/webaudio/base_audio_context.h"
#include "third_party/blink/renderer/platform/bindings/exception_messages.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
namespace blink {
namespace {
constexpr unsigned kDefaultNumberOfInputChannels = …;
constexpr unsigned kDefaultNumberOfOutputChannels = …;
}
AnalyserHandler::AnalyserHandler(AudioNode& node, float sample_rate)
: … { … }
scoped_refptr<AnalyserHandler> AnalyserHandler::Create(AudioNode& node,
float sample_rate) { … }
AnalyserHandler::~AnalyserHandler() { … }
void AnalyserHandler::Process(uint32_t frames_to_process) { … }
void AnalyserHandler::SetFftSize(unsigned size,
ExceptionState& exception_state) { … }
void AnalyserHandler::SetMinDecibels(double k,
ExceptionState& exception_state) { … }
void AnalyserHandler::SetMaxDecibels(double k,
ExceptionState& exception_state) { … }
void AnalyserHandler::SetMinMaxDecibels(double min_decibels,
double max_decibels,
ExceptionState& exception_state) { … }
void AnalyserHandler::SetSmoothingTimeConstant(
double k,
ExceptionState& exception_state) { … }
void AnalyserHandler::UpdatePullStatusIfNeeded() { … }
bool AnalyserHandler::RequiresTailProcessing() const { … }
double AnalyserHandler::TailTime() const { … }
void AnalyserHandler::PullInputs(uint32_t frames_to_process) { … }
void AnalyserHandler::CheckNumberOfChannelsForInput(AudioNodeInput* input) { … }
}