Prefer portable (MSVC?) getenv (amend 5ea54be)
authorRobin Gareus <robin@gareus.org>
Wed, 2 Oct 2019 21:14:58 +0000 (23:14 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 2 Oct 2019 21:14:58 +0000 (23:14 +0200)
libs/ardour/ardour/dsp_load_calculator.h

index fb6a34cfb5c1d848366d4768b2404ef3c00aa32d..5a7b3f0e45444ee4366bf7103df93f31c1857ca2 100644 (file)
@@ -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_getenv("ARDOUR_AVG_DSP_LOAD");
        }
 
        void set_max_time(double samplerate, uint32_t period_size) {