: 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
{
AudioRegionEditor::signal_peak_thread ()
{
#ifdef PLATFORM_WINDOWS
- m_peak_sem.post ();
+ m_peak_sem.signal ();
#else
_peak_channel.deliver ('c');
#endif
#include "pbd/signals.h"
#ifdef PLATFORM_WINDOWS
-#include "pbd/glib_semaphore.h"
+#include "pbd/semutils.h"
#else
#include "pbd/crossthread.h"
#endif
PBD::Signal1<void, double> PeakAmplitudeFound;
PBD::ScopedConnection _peak_amplitude_connection;
#ifdef PLATFORM_WINDOWS
- PBD::GlibSemaphore m_peak_sem;
+ PBD::ProcessSemaphore m_peak_sem;
#else
CrossThreadChannel _peak_channel;
#endif