Ardour  9.0-pre0-582-g084a23a80d
transport_api.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Paul Davis <paul@linuxaudiosystems.com>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef _ardour_transport_api_h_
20 #define _ardour_transport_api_h_
21 
22 #include "ardour/types.h"
24 
25 namespace ARDOUR
26 {
27 
29 {
30  public:
32  virtual ~TransportAPI() {}
33 
34  private:
35  friend struct TransportFSM;
36 
37  virtual void locate (samplepos_t, bool with_loop=false, bool force=false, bool with_mmc=true) = 0;
38  virtual bool should_stop_before_locate () const = 0;
39  virtual void stop_transport (bool abort = false, bool clear_state = false) = 0;
40  virtual void start_transport (bool after_loop) = 0;
41  virtual void butler_completed_transport_work () = 0;
43  virtual bool should_roll_after_locate () const = 0;
44  virtual bool user_roll_after_locate() const = 0;
45  virtual void set_transport_speed (double speed) = 0;
46  virtual samplepos_t position() const = 0;
47  virtual bool need_declick_before_locate () const = 0;
48 };
49 
50 } /* end namespace ARDOUR */
51 
52 #endif
virtual samplepos_t position() const =0
virtual bool should_roll_after_locate() const =0
virtual void set_transport_speed(double speed)=0
virtual void butler_completed_transport_work()=0
virtual void schedule_butler_for_transport_work()=0
virtual void stop_transport(bool abort=false, bool clear_state=false)=0
virtual bool user_roll_after_locate() const =0
virtual bool should_stop_before_locate() const =0
virtual bool need_declick_before_locate() const =0
virtual void start_transport(bool after_loop)=0
virtual void locate(samplepos_t, bool with_loop=false, bool force=false, bool with_mmc=true)=0
#define LIBARDOUR_API
Temporal::samplepos_t samplepos_t