Skip to content

Commit

Permalink
MiMi-d: Follow sample rate set by framework (fixes #1)
Browse files Browse the repository at this point in the history
Instead of a fixed sample rate of 44100, set the initial sample
rate from the plugin framework.

(The SampleRateChanged() callback is only called by the
framework when the sample rate is actually changed).
  • Loading branch information
Ricard Wanderlof committed Mar 30, 2024
1 parent 579d9f3 commit 8c93f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/mimid/MiMi-d.cpp
Expand Up @@ -122,7 +122,7 @@ class MiMid : public Plugin {
public:
MiMid() : Plugin(PARAM_COUNT, 0, 0)
{
synth.setSampleRate(44100);
synth.setSampleRate(getSampleRate());

// Set up setfuncs array

Expand Down

0 comments on commit 8c93f2c

Please sign in to comment.