chromium/third_party/blink/renderer/modules/webaudio/constant_source_handler.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/modules/webaudio/constant_source_handler.h"

#include <tuple>

#include "third_party/blink/renderer/modules/webaudio/audio_node_output.h"

namespace blink {

namespace {

// A ConstantSource is always mono.
constexpr unsigned kNumberOfOutputChannels =;

}  // namespace

ConstantSourceHandler::ConstantSourceHandler(AudioNode& node,
                                             float sample_rate,
                                             AudioParamHandler& offset)
    :{}

scoped_refptr<ConstantSourceHandler> ConstantSourceHandler::Create(
    AudioNode& node,
    float sample_rate,
    AudioParamHandler& offset) {}

ConstantSourceHandler::~ConstantSourceHandler() {}

void ConstantSourceHandler::Process(uint32_t frames_to_process) {}

bool ConstantSourceHandler::PropagatesSilence() const {}

void ConstantSourceHandler::HandleStoppableSourceNode() {}

base::WeakPtr<AudioScheduledSourceHandler> ConstantSourceHandler::AsWeakPtr() {}

}  // namespace blink