use a more useful and accurate heuristic to get ::input_streams() for the auditioner
This commit is contained in:
parent
7a0b53f75e
commit
8b8ce09e9f
@ -503,8 +503,12 @@ Auditioner::input_streams () const
|
|||||||
depends solely on the region we are auditioning.
|
depends solely on the region we are auditioning.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (_disk_reader) {
|
if (_midi_audition) {
|
||||||
return _disk_reader->input_streams ();
|
return ChanCount (DataType::MIDI, 1);
|
||||||
|
} else {
|
||||||
|
if (the_region) {
|
||||||
|
return ChanCount (DataType::AUDIO, the_region->n_channels ());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ChanCount (DataType::AUDIO, 1);
|
return ChanCount (DataType::AUDIO, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user