diff --git a/src/timidity/timidity.cpp b/src/timidity/timidity.cpp index 807bc07b7..440db9211 100644 --- a/src/timidity/timidity.cpp +++ b/src/timidity/timidity.cpp @@ -698,7 +698,7 @@ Renderer::Renderer(float sample_rate, const char *args) if (def_instr_name.IsNotEmpty()) set_default_instrument(def_instr_name); - voices = clamp(midi_voices, 16, 256); + voices = MAX(*midi_voices, 16); voice = new Voice[voices]; drumchannels = DEFAULT_DRUMCHANNELS; }