X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Faudio_region_editor.cc;h=3446f58eeeee56cfe57c88e537995901ac52a96a;hb=234b06a18cf3e8c07bc44fb4f8c1218e17fb65f1;hp=730cd99b37cf2cb8c9f700930bf096a1dd4300fd;hpb=97c68cc2b1f302521244e139a8a49019702038e7;p=ardour.git diff --git a/gtk2_ardour/audio_region_editor.cc b/gtk2_ardour/audio_region_editor.cc index 730cd99b37..3446f58eee 100644 --- a/gtk2_ardour/audio_region_editor.cc +++ b/gtk2_ardour/audio_region_editor.cc @@ -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 : 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