summaryrefslogtreecommitdiff
path: root/muse2/muse/mtc.cpp
diff options
context:
space:
mode:
authorOrcan Ogetbil <oget.fedora@gmail.com>2011-10-07 02:20:29 +0000
committerOrcan Ogetbil <oget.fedora@gmail.com>2011-10-07 02:20:29 +0000
commitf16b2037025918e32c5fd90527f76e1102e5ecb9 (patch)
tree0da3b7a29d13b5b826b291ccb2f2676d2e227b40 /muse2/muse/mtc.cpp
parent42039e7f7f215f6008829d8c6be591c998f1228c (diff)
(hopefully) final huge namespace update.
Diffstat (limited to 'muse2/muse/mtc.cpp')
-rw-r--r--muse2/muse/mtc.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/muse2/muse/mtc.cpp b/muse2/muse/mtc.cpp
index cf404a90..ef6fcd3d 100644
--- a/muse2/muse/mtc.cpp
+++ b/muse2/muse/mtc.cpp
@@ -24,7 +24,11 @@
#include "mtc.h"
#include <stdio.h>
+namespace MusEGlobal {
extern int mtcType;
+}
+
+namespace MusECore {
//---------------------------------------------------------
// MTC::time
@@ -37,7 +41,7 @@ double MTC::time(int type) const
double time = _h * 3600 + _m * 60 + _s;
double ft = 0.0;
if(type == -1)
- type = mtcType;
+ type = MusEGlobal::mtcType;
switch (type) {
case 0: // 24 frames sec
ft = 1.0/24.0;
@@ -68,7 +72,7 @@ MTC::MTC(double t, int type)
t -= _s;
double ft = 1.0/24.0;
if(type == -1)
- type = mtcType;
+ type = MusEGlobal::mtcType;
switch (type) {
case 0: // 24 frames sec
ft = 1.0/24.0;
@@ -97,7 +101,7 @@ void MTC::incQuarter(int type)
{
int frames = 24;
if(type == -1)
- type = mtcType;
+ type = MusEGlobal::mtcType;
switch (type) {
case 0:
frames = 24;
@@ -143,3 +147,4 @@ void MTC::print() const
}
+} // namespace MusECore