projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hilight color tweak, listbox drag fixes, add 10bit to spec
[goodguy/history.git]
/
cinelerra-5.1
/
guicast
/
units.h
diff --git
a/cinelerra-5.1/guicast/units.h
b/cinelerra-5.1/guicast/units.h
index 7f24d777193a5b5b1a1918f32aff65e93b8f50f0..7456b662de9e5c62a38696fc86af14a5f4fd8fbf 100644
(file)
--- a/
cinelerra-5.1/guicast/units.h
+++ b/
cinelerra-5.1/guicast/units.h
@@
-75,8
+75,11
@@
#define TIME_MS2 10
#define TIME_MS2_TEXT _("Minutes:Seconds")
#define TIME_MS2 10
#define TIME_MS2_TEXT _("Minutes:Seconds")
+class Units;
+
class DB
{
class DB
{
+ friend class Units;
public:
DB(float infinitygain = INFINITYGAIN);
virtual ~DB() {};
public:
DB(float infinitygain = INFINITYGAIN);
virtual ~DB() {};
@@
-98,16
+101,17
@@
public:
inline int operator==(DB &newdb) { return db == newdb.db; };
inline int operator==(int newdb) { return db == newdb; };
inline int operator==(DB &newdb) { return db == newdb.db; };
inline int operator==(int newdb) { return db == newdb; };
-
static float *topower, *topower_base
;
+
float *topower
;
float db;
float infinitygain;
private:
float db;
float infinitygain;
private:
- static float *
allocated
;
+ static float *
topower_base
;
};
// Third octave frequency table
class Freq
{
};
// Third octave frequency table
class Freq
{
+ friend class Units;
public:
Freq();
Freq(const Freq& oldfreq);
public:
Freq();
Freq(const Freq& oldfreq);
@@
-143,6
+147,8
@@
class Units
{
public:
Units() {};
{
public:
Units() {};
+ static void init();
+ static void finit();
static int timeformat_totype(char *tcf);
static int timeformat_totype(char *tcf);