projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
provide an RC configuration variable to "shadow" Evoral::ControlList::thinning_factor
[ardour.git]
/
libs
/
ardour
/
ardour
/
auditioner.h
diff --git
a/libs/ardour/ardour/auditioner.h
b/libs/ardour/ardour/auditioner.h
index 06d521ea219ba03a57f5ea0d5898db7617c000ef..8c5a21bea6fd3c539643a73fbfb473476ee86ba3 100644
(file)
--- a/
libs/ardour/ardour/auditioner.h
+++ b/
libs/ardour/ardour/auditioner.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2001 Paul Davis
+ Copyright (C) 2001 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-24,8
+24,8
@@
#include <glibmm/thread.h>
#include <glibmm/thread.h>
-#include
<ardour/ardour.h>
-#include
<ardour/audio_track.h>
+#include
"ardour/ardour.h"
+#include
"ardour/audio_track.h"
namespace ARDOUR {
namespace ARDOUR {
@@
-39,31
+39,39
@@
class Auditioner : public AudioTrack
Auditioner (Session&);
~Auditioner ();
Auditioner (Session&);
~Auditioner ();
+ int init ();
+
void audition_region (boost::shared_ptr<Region>);
ARDOUR::AudioPlaylist& prepare_playlist ();
void audition_current_playlist ();
void audition_region (boost::shared_ptr<Region>);
ARDOUR::AudioPlaylist& prepare_playlist ();
void audition_current_playlist ();
- int play_audition (nframes_t nframes);
+ int play_audition (framecnt_t nframes);
+
+ MonitorState monitoring_state () const;
- void cancel_audition () {
- g_atomic_int_set (&_a
ctive
, 0);
+ void cancel_audition () {
+ g_atomic_int_set (&_a
uditioning
, 0);
}
}
- bool active() const { return g_atomic_int_get (&_active); }
+ 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;
private:
boost::shared_ptr<AudioRegion> the_region;
-
nframe
s_t current_frame;
- mutable gint _a
ctive
;
+
framepo
s_t current_frame;
+ mutable gint _a
uditioning
;
Glib::Mutex lock;
Glib::Mutex lock;
- nframes_t length;
+ framecnt_t length;
+ bool via_monitor;
void drop_ports ();
static void *_drop_ports (void *);
void actually_drop_ports ();
void output_changed (IOChange, void*);
void drop_ports ();
static void *_drop_ports (void *);
void actually_drop_ports ();
void output_changed (IOChange, void*);
-};
+};
}; /* namespace ARDOUR */
}; /* namespace ARDOUR */