bool auditioning() const { return g_atomic_int_get (&_auditioning); }
bool needs_monitor() const { return via_monitor; }
+ virtual ChanCount input_streams () const;
+
private:
boost::shared_ptr<AudioRegion> the_region;
framepos_t current_frame;
DataType _default_type;
FedBy _fed_by;
- ChanCount input_streams () const;
+ virtual ChanCount input_streams () const;
protected:
virtual XMLNode& state(bool);
}
}
}
+
+ChanCount
+Auditioner::input_streams () const
+{
+ /* auditioner never has any inputs - its channel configuration
+ depends solely on the region we are auditioning.
+ */
+
+ if (audio_diskstream()) {
+ return audio_diskstream()->n_channels();
+ }
+
+ return ChanCount ();
+}