#include <glibmm/threads.h>
#include "ardour/ardour.h"
-#include "ardour/audio_track.h"
-#include "ardour/midi_region.h"
-
-#include "ardour/audio_diskstream.h"
-#include "ardour/midi_diskstream.h"
+#include "ardour/track.h"
namespace ARDOUR {
class Session;
+class AudioDiskstream;
class AudioRegion;
class AudioPlaylist;
+class MidiDiskstream;
+class MidiRegion;
class LIBARDOUR_API Auditioner : public Track
{
void seek_to_frame (frameoffset_t pos) { if (_seek_frame < 0 && !_seeking) { _seek_frame = pos; }}
void seek_to_percent (float const pos) { if (_seek_frame < 0 && !_seeking) { _seek_frame = floorf(length * pos / 100.0); }}
- ARDOUR::AudioPlaylist& prepare_playlist ();
-
int play_audition (framecnt_t nframes);
MonitorState monitoring_state () const;
int roll_audio (pframes_t nframes, framepos_t start_frame, framepos_t end_frame, int declick, bool& need_butler);
int roll_midi (pframes_t nframes, framepos_t start_frame, framepos_t end_frame, int declick, bool& need_butler);
- boost::shared_ptr<Diskstream> create_diskstream ();
- void set_diskstream (boost::shared_ptr<Diskstream> ds);
-
/* fake track */
void set_state_part_two () {}
int set_state (const XMLNode&, int) { return 0; }
boost::shared_ptr<Region> bounce_range (framepos_t, framepos_t, InterThreadInfo&, boost::shared_ptr<Processor>, bool)
{ return boost::shared_ptr<Region> (); }
- int export_stuff (BufferSet&, framepos_t, framecnt_t, boost::shared_ptr<Processor>, bool, bool)
+ int export_stuff (BufferSet&, framepos_t, framecnt_t, boost::shared_ptr<Processor>, bool, bool, bool)
{ return -1; }
- boost::shared_ptr<Diskstream> diskstream_factory (XMLNode const &)
- { return boost::shared_ptr<Diskstream> (); }
-
- boost::shared_ptr<AudioDiskstream> audio_diskstream() const
- { return boost::dynamic_pointer_cast<AudioDiskstream> (_diskstream); }
-
- boost::shared_ptr<MidiDiskstream> midi_diskstream() const
- { return boost::dynamic_pointer_cast<MidiDiskstream> (_diskstream); }
-
-
private:
boost::shared_ptr<AudioRegion> the_region;
boost::shared_ptr<MidiRegion> midi_region;
bool _synth_changed;
bool _queue_panic;
- boost::shared_ptr<Diskstream> _diskstream_audio;
- boost::shared_ptr<Diskstream> _diskstream_midi;
boost::shared_ptr<Processor> asynth;
void drop_ports ();
static void *_drop_ports (void *);
void actually_drop_ports ();
void output_changed (IOChange, void*);
+ frameoffset_t _import_position;
};
}; /* namespace ARDOUR */