Skip to content

File limiter.h

File List > DaisySP > Source > Dynamics > limiter.h

Go to the documentation of this file

Source Code

/*
Copyright (c) 2020 Electrosmith, Corp, Emilie Gillet

Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/

#pragma once
#ifndef LIMITER_H
#define LIMITER_H
#include <stdlib.h>
namespace daisysp
{
class Limiter
{
  public:
    Limiter() {}
    ~Limiter() {}
    void Init();

    void ProcessBlock(float *in, size_t size, float pre_gain);

  private:
    float peak_;
};
} // namespace daisysp
#endif