summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/ticker.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
committerDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
commitbb9cc45cd22af67ac275a5e73accbe14fee664d8 (patch)
treee52977d3eae6ff07b856088041a080a2fa3e5b79 /libs/ardour/ardour/ticker.h
parent8c4ce1e2ce35571aed5a686671431fdfffae7f8c (diff)
Strip trailing whitespace and fix other whitespace errors (e.g. space/tab mixing). Whitespace changes only.
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/ticker.h')
-rw-r--r--libs/ardour/ardour/ticker.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/libs/ardour/ardour/ticker.h b/libs/ardour/ardour/ticker.h
index 8e3ddd5547..f87bca665d 100644
--- a/libs/ardour/ardour/ticker.h
+++ b/libs/ardour/ardour/ticker.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2008 Hans Baier
+ Copyright (C) 2008 Hans Baier
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
@@ -36,12 +36,12 @@ class Ticker : public sigc::trackable
public:
Ticker() : _session(0) {};
virtual ~Ticker() {};
-
+
virtual void tick(
- const nframes_t& transport_frames,
- const BBT_Time& transport_bbt,
+ const nframes_t& transport_frames,
+ const BBT_Time& transport_bbt,
const SMPTE::Time& transport_smpte) = 0;
-
+
virtual void set_session(Session& s);
virtual void going_away() { _session = 0; }
@@ -56,45 +56,45 @@ private:
MidiClockTicker() : _midi_port(0), _ppqn(24), _last_tick(0.0) {};
MidiClockTicker( const MidiClockTicker& );
MidiClockTicker& operator= (const MidiClockTicker&);
-
+
public:
virtual ~MidiClockTicker() {};
-
+
static MidiClockTicker& instance() {
static MidiClockTicker _instance;
return _instance;
}
-
+
void tick(
- const nframes_t& transport_frames,
- const BBT_Time& transport_bbt,
+ const nframes_t& transport_frames,
+ const BBT_Time& transport_bbt,
const SMPTE::Time& transport_smpte);
-
+
void set_session(Session& s);
void going_away() { _midi_port = 0; Ticker::going_away(); }
/// slot for the signal session::MIDIClock_PortChanged
void update_midi_clock_port();
-
+
/// slot for the signal session::TransportStateChange
void transport_state_changed();
-
+
/// slot for the signal session::PositionChanged
void position_changed(nframes_t position);
/// slot for the signal session::TransportLooped
void transport_looped();
-
+
/// pulses per quarter note (default 24)
void set_ppqn(int ppqn) { _ppqn = ppqn; }
-private:
+private:
MIDI::Port* _midi_port;
int _ppqn;
double _last_tick;
double one_ppqn_in_frames(nframes_t transport_position);
-
+
void send_midi_clock_event(nframes_t offset);
void send_start_event(nframes_t offset);
void send_continue_event(nframes_t offset);