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 21, 2024
1 parent ce29fbe commit e99e84d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/mimid/MiMi-d.cpp
Original file line number Diff line number Diff line change
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 e99e84d

Please sign in to comment.