OSC: Changed gainVCA to gainfader as VCA is already used.
[ardour.git] / gtk2_ardour / audio_region_editor.cc
index 730cd99b37cf2cb8c9f700930bf096a1dd4300fd..3446f58eeeee56cfe57c88e537995901ac52a96a 100644 (file)
@@ -31,8 +31,6 @@
 
 #include "audio_region_editor.h"
 #include "audio_region_view.h"
-#include "ardour_ui.h"
-#include "utils.h"
 #include "gui_thread.h"
 
 #include "i18n.h"
@@ -54,7 +52,9 @@ AudioRegionEditor::AudioRegionEditor (Session* s, boost::shared_ptr<AudioRegion>
        : RegionEditor (s, r)
        , _audio_region (r)
        , gain_adjustment(accurate_coefficient_to_dB(_audio_region->scale_amplitude()), -40.0, +40.0, 0.1, 1.0, 0)
-#ifndef PLATFORM_WINDOWS
+#ifdef PLATFORM_WINDOWS
+       , m_peak_sem ("peak_semaphore", 0)
+#else
        , _peak_channel (false)
 #endif
 {
@@ -139,7 +139,7 @@ void
 AudioRegionEditor::signal_peak_thread ()
 {
 #ifdef PLATFORM_WINDOWS
-       m_peak_sem.post ();
+       m_peak_sem.signal ();
 #else
        _peak_channel.deliver ('c');
 #endif