ardour
slave.cc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002 Paul Davis
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (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., 675 Mass Ave, Cambridge, MA 02139, USA.
17 
18  */
19 
20 #include "ardour/audioengine.h"
21 #include "ardour/session.h"
22 #include "ardour/slave.h"
23 
24 namespace ARDOUR {
25 
26 TempoMap&
28 {
29  return session.tempo_map();
30 }
31 
34 {
35  return session.frame_rate();
36 }
37 
40 {
41  return session.engine().samples_per_cycle();
42 }
43 
46 {
47  return session.audible_frame();
48 }
49 
52 {
53  return session.transport_frame();
54 }
55 
58 {
60 }
61 
64 {
66 }
67 
68 
71 {
72  return session.engine().sample_time();
73 }
74 
75 void
77 {
78  session.request_locate(frame, with_roll);
79 }
80 
81 void
83 {
85 }
86 
87 } // namespace ARDOUR
framepos_t audible_frame() const
Definition: session.cc:1760
pframes_t samples_since_cycle_start()
pframes_t samples_per_cycle() const
Definition: audioengine.cc:983
TempoMap & tempo_map()
Definition: session.h:596
framecnt_t frame_rate() const
Definition: slave.cc:33
uint32_t pframes_t
Definition: types.h:61
framepos_t frame_time() const
Definition: slave.cc:70
void request_locate(framepos_t frame, bool with_roll=false)
framecnt_t frame_rate() const
Definition: session.h:365
framepos_t sample_time()
LIBARDOUR_API uint64_t TempoMap
Definition: debug.cc:60
pframes_t frames_since_cycle_start() const
Definition: slave.cc:57
int64_t framecnt_t
Definition: types.h:76
pframes_t frames_per_cycle() const
Definition: slave.cc:39
framepos_t transport_frame() const
Definition: session.h:551
Definition: amp.h:29
void request_transport_speed(double speed, bool as_default=false)
framepos_t sample_time_at_cycle_start()
int64_t framepos_t
Definition: types.h:66
void request_transport_speed(double speed)
Definition: slave.cc:82
framepos_t audible_frame() const
Definition: slave.cc:45
TempoMap & tempo_map() const
Definition: slave.cc:27
void request_locate(framepos_t frame, bool with_roll=false)
Definition: slave.cc:76
framepos_t sample_time_at_cycle_start() const
Definition: slave.cc:63
framepos_t transport_frame() const
Definition: slave.cc:51
AudioEngine & engine()
Definition: session.h:546