Enable midi-to-audio bounce when processing w/synth

This commit is contained in:
Robin Gareus 2019-04-07 19:51:08 +02:00
parent 8f9c1df183
commit 7e0f6be1ed
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 4 additions and 0 deletions

View File

@ -6124,6 +6124,10 @@ Session::write_one_track (Track& track, samplepos_t start, samplepos_t end,
diskstream_channels = track.bounce_get_output_streams (diskstream_channels, endpoint,
include_endpoint, for_export, for_freeze);
if (data_type == DataType::MIDI && endpoint && !for_export && !for_freeze && diskstream_channels.n(DataType::AUDIO) > 0) {
data_type = DataType::AUDIO;
}
if (diskstream_channels.n(data_type) < 1) {
error << _("Cannot write a range with no data.") << endmsg;
return result;