Skip to content

Commit

Permalink
setSampleRate function in BasicFilters
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRobotMusic authored Jan 4, 2024
1 parent c2f2b7e commit 64a2d2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/BasicFilters.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,12 @@ class BasicFilters
}
}

inline void setSampleRate(float sampleRate)
{
m_sampleRate = sampleRate;
m_sampleRatio = 1.f / m_sampleRate;
}

inline sample_t update( sample_t _in0, ch_cnt_t _chnl )
{
sample_t out;
Expand Down

0 comments on commit 64a2d2e

Please sign in to comment.