mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Resolve microseconds_t ambiguity 1/2
This resolves a PBD vs ARDOUR namespace error for some compilers: ``` error: reference to 'microseconds_t' is ambiguous libs/pbd/pbd/microseconds.h:29:19: error: candidates are: typedef uint64_t PBD::microseconds_t libs/ardour/ardour/types.h:81:29: error: typedef PBD::microseconds_t ARDOUR::microseconds_t ```
This commit is contained in:
parent
6077cf1f7b
commit
b58dfc7f0f
19 changed files with 27 additions and 28 deletions
|
|
@ -78,7 +78,6 @@ typedef float Sample;
|
|||
typedef float pan_t;
|
||||
typedef float gain_t;
|
||||
typedef uint32_t layer_t;
|
||||
typedef PBD::microseconds_t microseconds_t;
|
||||
typedef uint32_t pframes_t;
|
||||
|
||||
/* rebind Temporal position types into ARDOUR namespace */
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ class CC121 : public ARDOUR::ControlProtocol, public AbstractUI<CC121Request> {
|
|||
enum JogMode { scroll=1, zoom=2 };
|
||||
JogMode _jogmode;
|
||||
|
||||
ARDOUR::microseconds_t last_encoder_time;
|
||||
PBD::microseconds_t last_encoder_time;
|
||||
int last_good_encoder_delta;
|
||||
int last_encoder_delta, last_last_encoder_delta;
|
||||
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ class FaderPort : public ARDOUR::ControlProtocol, public AbstractUI<FaderPortReq
|
|||
int fader_lsb;
|
||||
bool fader_is_touched;
|
||||
|
||||
ARDOUR::microseconds_t last_encoder_time;
|
||||
PBD::microseconds_t last_encoder_time;
|
||||
int last_good_encoder_delta;
|
||||
int last_encoder_delta, last_last_encoder_delta;
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public:
|
|||
boost::shared_ptr<ARDOUR::Port> input_port () const;
|
||||
boost::shared_ptr<ARDOUR::Port> output_port () const;
|
||||
|
||||
void set_feedback_interval (ARDOUR::microseconds_t);
|
||||
void set_feedback_interval (PBD::microseconds_t);
|
||||
|
||||
int set_feedback (bool yn);
|
||||
bool get_feedback () const;
|
||||
|
|
@ -133,8 +133,8 @@ private:
|
|||
boost::shared_ptr<ARDOUR::AsyncMIDIPort> _input_port;
|
||||
boost::shared_ptr<ARDOUR::AsyncMIDIPort> _output_port;
|
||||
|
||||
ARDOUR::microseconds_t _feedback_interval;
|
||||
ARDOUR::microseconds_t last_feedback_time;
|
||||
PBD::microseconds_t _feedback_interval;
|
||||
PBD::microseconds_t last_feedback_time;
|
||||
|
||||
bool do_feedback;
|
||||
void _send_feedback ();
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ Button::long_press_count ()
|
|||
return -1; /* button is not pressed */
|
||||
}
|
||||
|
||||
const ARDOUR::microseconds_t delta = PBD::get_microseconds () - press_time;
|
||||
const PBD::microseconds_t delta = PBD::get_microseconds () - press_time;
|
||||
|
||||
if (delta < 500000) {
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ private:
|
|||
Surface& _surface;
|
||||
ID _bid; /* device independent button ID */
|
||||
Led _led;
|
||||
ARDOUR::microseconds_t press_time;
|
||||
PBD::microseconds_t press_time;
|
||||
};
|
||||
|
||||
} // Mackie namespace
|
||||
|
|
|
|||
|
|
@ -536,7 +536,7 @@ MackieControlProtocol::periodic ()
|
|||
|
||||
update_timecode_display ();
|
||||
|
||||
ARDOUR::microseconds_t now_usecs = PBD::get_microseconds ();
|
||||
PBD::microseconds_t now_usecs = PBD::get_microseconds ();
|
||||
|
||||
{
|
||||
Glib::Threads::Mutex::Lock lm (surfaces_lock);
|
||||
|
|
@ -565,7 +565,7 @@ MackieControlProtocol::redisplay ()
|
|||
initialize();
|
||||
}
|
||||
|
||||
ARDOUR::microseconds_t now = PBD::get_microseconds ();
|
||||
PBD::microseconds_t now = PBD::get_microseconds ();
|
||||
|
||||
{
|
||||
Glib::Threads::Mutex::Lock lm (surfaces_lock);
|
||||
|
|
|
|||
|
|
@ -828,14 +828,14 @@ Strip::handle_pot (Pot& pot, float delta)
|
|||
}
|
||||
|
||||
void
|
||||
Strip::periodic (ARDOUR::microseconds_t now)
|
||||
Strip::periodic (PBD::microseconds_t now)
|
||||
{
|
||||
update_meter ();
|
||||
update_automation ();
|
||||
}
|
||||
|
||||
void
|
||||
Strip::redisplay (ARDOUR::microseconds_t now, bool force)
|
||||
Strip::redisplay (PBD::microseconds_t now, bool force)
|
||||
{
|
||||
if (_block_screen_redisplay_until >= now) {
|
||||
/* no drawing allowed */
|
||||
|
|
|
|||
|
|
@ -88,8 +88,8 @@ public:
|
|||
void handle_fader_touch (Fader&, bool touch_on);
|
||||
void handle_pot (Pot&, float delta);
|
||||
|
||||
void periodic (ARDOUR::microseconds_t now_usecs);
|
||||
void redisplay (ARDOUR::microseconds_t now_usecs, bool force = true);
|
||||
void periodic (PBD::microseconds_t now_usecs);
|
||||
void redisplay (PBD::microseconds_t now_usecs, bool force = true);
|
||||
|
||||
MidiByteArray display (uint32_t line_number, const std::string&);
|
||||
MidiByteArray blank_display (uint32_t line_number);
|
||||
|
|
|
|||
|
|
@ -960,7 +960,7 @@ Surface::periodic (uint64_t now_usecs)
|
|||
}
|
||||
|
||||
void
|
||||
Surface::redisplay (ARDOUR::microseconds_t now, bool force)
|
||||
Surface::redisplay (PBD::microseconds_t now, bool force)
|
||||
{
|
||||
for (Strips::iterator s = strips.begin(); s != strips.end(); ++s) {
|
||||
(*s)->redisplay (now, force);
|
||||
|
|
|
|||
|
|
@ -113,8 +113,8 @@ public:
|
|||
|
||||
const MidiByteArray& sysex_hdr() const;
|
||||
|
||||
void periodic (ARDOUR::microseconds_t now_usecs);
|
||||
void redisplay (ARDOUR::microseconds_t now_usecs, bool force);
|
||||
void periodic (PBD::microseconds_t now_usecs);
|
||||
void redisplay (PBD::microseconds_t now_usecs, bool force);
|
||||
void hui_heartbeat ();
|
||||
|
||||
void handle_midi_pitchbend_message (MIDI::Parser&, MIDI::pitchbend_t, uint32_t channel_id);
|
||||
|
|
|
|||
|
|
@ -522,7 +522,7 @@ class Push2 : public ARDOUR::ControlProtocol
|
|||
bool vblank ();
|
||||
|
||||
void splash ();
|
||||
ARDOUR::microseconds_t splash_start;
|
||||
PBD::microseconds_t splash_start;
|
||||
|
||||
/* the canvas */
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ Button::long_press_count ()
|
|||
return -1; /* button is not pressed */
|
||||
}
|
||||
|
||||
const ARDOUR::microseconds_t delta = PBD::get_microseconds () - press_time;
|
||||
const PBD::microseconds_t delta = PBD::get_microseconds () - press_time;
|
||||
|
||||
if (delta < 500000) {
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ private:
|
|||
Surface& _surface;
|
||||
ID _bid; /* device independent button ID */
|
||||
Led _led;
|
||||
ARDOUR::microseconds_t press_time;
|
||||
PBD::microseconds_t press_time;
|
||||
};
|
||||
|
||||
} // US2400 namespace
|
||||
|
|
|
|||
|
|
@ -597,7 +597,7 @@ Strip::handle_pot (Pot& pot, float delta)
|
|||
}
|
||||
|
||||
void
|
||||
Strip::periodic (ARDOUR::microseconds_t now)
|
||||
Strip::periodic (PBD::microseconds_t now)
|
||||
{
|
||||
|
||||
update_meter ();
|
||||
|
|
@ -637,7 +637,7 @@ Strip::periodic (ARDOUR::microseconds_t now)
|
|||
}
|
||||
|
||||
void
|
||||
Strip::redisplay (ARDOUR::microseconds_t now, bool force)
|
||||
Strip::redisplay (PBD::microseconds_t now, bool force)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -88,8 +88,8 @@ public:
|
|||
void handle_fader_touch (Fader&, bool touch_on);
|
||||
void handle_pot (Pot&, float delta);
|
||||
|
||||
void periodic (ARDOUR::microseconds_t now_usecs);
|
||||
void redisplay (ARDOUR::microseconds_t now_usecs, bool force = true);
|
||||
void periodic (PBD::microseconds_t now_usecs);
|
||||
void redisplay (PBD::microseconds_t now_usecs, bool force = true);
|
||||
|
||||
void zero ();
|
||||
|
||||
|
|
|
|||
|
|
@ -920,7 +920,7 @@ Surface::periodic (uint64_t now_usecs)
|
|||
}
|
||||
|
||||
void
|
||||
Surface::redisplay (ARDOUR::microseconds_t now, bool force)
|
||||
Surface::redisplay (PBD::microseconds_t now, bool force)
|
||||
{
|
||||
for (Strips::iterator s = strips.begin(); s != strips.end(); ++s) {
|
||||
(*s)->redisplay (now, force);
|
||||
|
|
|
|||
|
|
@ -112,8 +112,8 @@ public:
|
|||
|
||||
const MidiByteArray& sysex_hdr() const;
|
||||
|
||||
void periodic (ARDOUR::microseconds_t now_usecs);
|
||||
void redisplay (ARDOUR::microseconds_t now_usecs, bool force);
|
||||
void periodic (PBD::microseconds_t now_usecs);
|
||||
void redisplay (PBD::microseconds_t now_usecs, bool force);
|
||||
void hui_heartbeat ();
|
||||
|
||||
void handle_midi_pitchbend_message (MIDI::Parser&, MIDI::pitchbend_t, uint32_t channel_id);
|
||||
|
|
|
|||
|
|
@ -457,7 +457,7 @@ US2400Protocol::periodic ()
|
|||
initialize();
|
||||
}
|
||||
|
||||
ARDOUR::microseconds_t now_usecs = PBD::get_microseconds ();
|
||||
PBD::microseconds_t now_usecs = PBD::get_microseconds ();
|
||||
|
||||
{
|
||||
Glib::Threads::Mutex::Lock lm (surfaces_lock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue