13
0

fix samplerate initialization.

This commit is contained in:
Robin Gareus 2015-12-26 04:52:08 +01:00
parent d9fcd142b4
commit 435dd4e98f

View File

@ -317,6 +317,11 @@ Session::Session (AudioEngine &eng,
throw SessionException (_("Cannot connect to audio/midi engine")); throw SessionException (_("Cannot connect to audio/midi engine"));
} }
// set samplerate for plugins added early
// e.g from templates or MB channelstrip
set_block_size (_engine.samples_per_cycle());
set_frame_rate (_engine.sample_rate());
if (create (mix_template, bus_profile)) { if (create (mix_template, bus_profile)) {
destroy (); destroy ();
throw SessionException (_("Session initialization failed")); throw SessionException (_("Session initialization failed"));