fix samplerate initialization.
This commit is contained in:
parent
d9fcd142b4
commit
435dd4e98f
@ -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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user