#pragma once
#include <juce_audio_basics/juce_audio_basics.h>

class ReverbFX {
public:
    void prepare(double /*sr*/) {}

    void setParameters(float size, float damping, float width, float mix) {
        juce::Reverb::Parameters params;
        params.roomSize = size;
        params.damping = damping;
        params.width = width;
        params.wetLevel = mix;
        params.dryLevel = 1.0f - mix * 0.5f;
        params.freezeMode = 0.0f;
        reverb.setParameters(params);
    }

    void process(float* left, float* right, int numSamples) {
        reverb.processStereo(left, right, numSamples);
    }

private:
    juce::Reverb reverb;
};
