Start new models bypassed. Prevent silentSamples from overflowing.

This commit is contained in:
Mike Oliphant
2025-11-11 07:23:47 -08:00
parent d998b95e45
commit eeaeeecf24
2 changed files with 16 additions and 4 deletions
+2 -1
View File
@@ -80,6 +80,7 @@ namespace NAM {
bool initialize(double rate, const LV2_Feature* const* features) noexcept;
void set_max_buffer_size(int size) noexcept;
void activate() noexcept;
void process(uint32_t n_samples) noexcept;
void write_current_path();
@@ -122,6 +123,6 @@ namespace NAM {
int32_t maxBufferSize = 512;
float bypassThresholdLinear = 0;
uint32_t silentSamples = 0;
bool smartBypassed = false;
bool smartBypassed = true;
};
}