ardour
delayline.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2006, 2013 Paul Davis
3  Copyright (C) 2013, 2014 Robin Gareus <robin@gareus.org>
4 
5  This program is free software; you can redistribute it and/or modify it
6  under the terms of the GNU General Public License as published by the Free
7  Software Foundation; either version 2 of the License, or (at your option)
8  any later version.
9 
10  This program is distributed in the hope that it will be useful, but WITHOUT
11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13  for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19 
20 #ifndef __ardour_delayline_h__
21 #define __ardour_delayline_h__
22 
23 #include "ardour/types.h"
24 #include "ardour/processor.h"
25 
26 namespace ARDOUR {
27 
28 class BufferSet;
29 class ChanCount;
30 class Session;
31 
35 public:
36 
37  DelayLine (Session& s, const std::string& name);
38  ~DelayLine ();
39 
40  bool display_to_user() const { return false; }
41 
42  void run (BufferSet&, framepos_t, framepos_t, pframes_t, bool);
43  void set_delay(framecnt_t signal_delay);
44  framecnt_t get_delay() { return _pending_delay; }
45 
46  bool configure_io (ChanCount in, ChanCount out);
47  bool can_support_io_configuration (const ChanCount& in, ChanCount& out);
48 
49  void flush();
50  void realtime_handle_transport_stopped () { flush(); }
51  void realtime_locate () { flush(); }
52  void monitoring_changed() { flush(); }
53 
54  XMLNode& state (bool full);
55 
56 private:
57  friend class IO;
65 };
66 
67 } // namespace ARDOUR
68 
69 #endif // __ardour_meter_h__
framecnt_t _pending_delay
Definition: delayline.h:58
framecnt_t get_delay()
Definition: delayline.h:44
boost::shared_ptr< Sample > _buf
Definition: delayline.h:61
boost::shared_ptr< Sample > _pending_buf
Definition: delayline.h:62
uint32_t pframes_t
Definition: types.h:61
bool display_to_user() const
Definition: delayline.h:40
boost::shared_ptr< MidiBuffer > _midi_buf
Definition: delayline.h:63
int64_t framecnt_t
Definition: types.h:76
Definition: amp.h:29
int64_t framepos_t
Definition: types.h:66
int64_t frameoffset_t
Definition: types.h:71
#define LIBARDOUR_API
const char * name
framecnt_t _pending_bsiz
Definition: delayline.h:59
Definition: xml++.h:95
frameoffset_t _woff
Definition: delayline.h:60
void realtime_locate()
Definition: delayline.h:51
void monitoring_changed()
Definition: delayline.h:52
Definition: io.h:67
void realtime_handle_transport_stopped()
Definition: delayline.h:50