31 #ifndef OPENSHOT_WHISPERIZATION_AUDIO_EFFECT_H 32 #define OPENSHOT_WHISPERIZATION_AUDIO_EFFECT_H 33 #define _USE_MATH_DEFINES 35 #include "../EffectBase.h" 39 #include "../KeyFrame.h" 60 void init_effect_details();
81 std::shared_ptr<openshot::Frame>
GetFrame(int64_t frame_number)
override {
82 return GetFrame(std::make_shared<openshot::Frame>(), frame_number);
94 std::shared_ptr<openshot::Frame>
GetFrame(std::shared_ptr<openshot::Frame> frame, int64_t frame_number)
override;
97 std::string
Json()
const override;
98 void SetJson(
const std::string value)
override;
104 std::string
PropertiesJSON(int64_t requested_frame)
const override;
113 void modification(
const int channel)
override;
120 std::unique_ptr<juce::dsp::FFT>
fft;
Json::Value JsonValue() const override
Generate Json::Value for this object.
Whisperization()
Blank constructor, useful when using Json to load the effect properties.
This abstract class is the base class, used by all effects in libopenshot.
std::shared_ptr< openshot::Frame > GetFrame(int64_t frame_number) override
This method is required for all derived classes of ClipBase, and returns a new openshot::Frame object...
juce::CriticalSection lock
FFTSize
This enumeration determines the FFT size.
openshot::WindowType window_type
openshot::FFTSize fft_size
std::string PropertiesJSON(int64_t requested_frame) const override
This class adds a whisperization effect into the audio.
HopSize
This enumeration determines the hop size.
This namespace is the default namespace for all code in the openshot library.
void SetJson(const std::string value) override
Load JSON string into this object.
WindowType
This enumeration determines the window type.
std::string Json() const override
Generate JSON string of this object.
WhisperizationEffect stft
std::unique_ptr< juce::dsp::FFT > fft
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
WhisperizationEffect(Whisperization &p)
openshot::HopSize hop_size