mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 21:25:46 +01:00
use a more useful and accurate heuristic to get ::input_streams() for the auditioner
This commit is contained in:
parent
b9a3e04bc4
commit
d1474dd512
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue