13
0

use a more useful and accurate heuristic to get ::input_streams() for the auditioner

This commit is contained in:
Paul Davis 2017-07-25 11:39:27 -04:00
parent 7a0b53f75e
commit 8b8ce09e9f

View File

@ -503,8 +503,12 @@ Auditioner::input_streams () const
depends solely on the region we are auditioning.
*/
if (_disk_reader) {
return _disk_reader->input_streams ();
if (_midi_audition) {
return ChanCount (DataType::MIDI, 1);
} else {
if (the_region) {
return ChanCount (DataType::AUDIO, the_region->n_channels ());
}
}
return ChanCount (DataType::AUDIO, 1);