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;
return 0;
}
-AudioPlaylist&
-Auditioner::prepare_playlist ()
-{
- // used by CrossfadeEditor::audition()
-
- _midi_audition = false;
-
- if (_synth_added) {
- remove_processor(asynth);
- _synth_added = false;
- }
-
- // FIXME auditioner is still audio-only
- boost::shared_ptr<AudioPlaylist> apl = boost::dynamic_pointer_cast<AudioPlaylist>(playlist());
- assert(apl);
-
- apl->clear ();
- return *apl;
-}
-
void
Auditioner::audition_region (boost::shared_ptr<Region> region)
{