projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ea54be
)
Prefer portable (MSVC?) getenv (amend 5ea54be)
author
Robin Gareus
<robin@gareus.org>
Wed, 2 Oct 2019 21:14:58 +0000
(23:14 +0200)
committer
Robin Gareus
<robin@gareus.org>
Wed, 2 Oct 2019 21:14:58 +0000
(23:14 +0200)
libs/ardour/ardour/dsp_load_calculator.h
patch
|
blob
|
history
diff --git
a/libs/ardour/ardour/dsp_load_calculator.h
b/libs/ardour/ardour/dsp_load_calculator.h
index fb6a34cfb5c1d848366d4768b2404ef3c00aa32d..5a7b3f0e45444ee4366bf7103df93f31c1857ca2 100644
(file)
--- a/
libs/ardour/ardour/dsp_load_calculator.h
+++ b/
libs/ardour/ardour/dsp_load_calculator.h
@@
-20,6
+20,7
@@
#ifndef ARDOUR_DSP_LOAD_CALCULATOR_H
#define ARDOUR_DSP_LOAD_CALCULATOR_H
+#include <glib.h>
#include <stdlib.h>
#include <stdint.h>
#include <cassert>
@@
-36,7
+37,7
@@
public:
, m_alpha(0)
, m_dsp_load(0)
{
- m_calc_avg_load = NULL != getenv("ARDOUR_AVG_DSP_LOAD");
+ m_calc_avg_load = NULL != g
_g
etenv("ARDOUR_AVG_DSP_LOAD");
}
void set_max_time(double samplerate, uint32_t period_size) {