projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Call PBD::init() from libmidi++ test runner
[ardour.git]
/
libs
/
midi++2
/
mtc.cc
diff --git
a/libs/midi++2/mtc.cc
b/libs/midi++2/mtc.cc
index d1bb7c9bad673c814c3f5ea1098418b5e7e7b629..e2a018ca51ddda65af2b8ae18706279194a152c8 100644
(file)
--- a/
libs/midi++2/mtc.cc
+++ b/
libs/midi++2/mtc.cc
@@
-36,7
+36,7
@@
using namespace MIDI;
#undef DEBUG_MTC
bool
#undef DEBUG_MTC
bool
-Parser::possible_mtc (byte *sysex_buf, size_t msglen)
+Parser::possible_mtc (
MIDI::
byte *sysex_buf, size_t msglen)
{
byte fake_mtc_time[5];
{
byte fake_mtc_time[5];
@@
-91,7
+91,7
@@
Parser::reset_mtc_state ()
}
void
}
void
-Parser::process_mtc_quarter_frame (byte *msg)
+Parser::process_mtc_quarter_frame (
MIDI::
byte *msg)
{
int which_quarter_frame = (msg[1] & 0xf0) >> 4;
{
int which_quarter_frame = (msg[1] & 0xf0) >> 4;
@@
-240,7
+240,7
@@
Parser::process_mtc_quarter_frame (byte *msg)
/* time code is looking good */
#ifdef DEBUG_MTC
/* time code is looking good */
#ifdef DEBUG_MTC
-
//
cerr << "for quarter frame " << which_quarter_frame << " byte = " << hex << (int) msg[1] << dec << endl;
+ cerr << "for quarter frame " << which_quarter_frame << " byte = " << hex << (int) msg[1] << dec << endl;
#endif
switch (which_quarter_frame) {
#endif
switch (which_quarter_frame) {
@@
-285,7
+285,7
@@
Parser::process_mtc_quarter_frame (byte *msg)
break;
default:
break;
default:
- /*NOTREACHED*/
+
abort();
/*NOTREACHED*/
break;
}
break;
}
@@
-300,7
+300,7
@@
Parser::process_mtc_quarter_frame (byte *msg)
switch (_mtc_running) {
case MTC_Forward:
switch (_mtc_running) {
case MTC_Forward:
- if (
(which_quarter_frame == 7)
) {
+ if (
which_quarter_frame == 7
) {
/* we've reached the final of 8 quarter frame messages.
store the time, reset the pending time holder,
/* we've reached the final of 8 quarter frame messages.
store the time, reset the pending time holder,