first compiling, mostly working version of group controls changes
[ardour.git] / gtk2_ardour / audio_region_editor.h
index b72986ecf19034387bc5f9564b7a0f97ee0443a0..dd726bdd5429dcb90093f25572b65b9729599175 100644 (file)
 
 
 #include "pbd/signals.h"
+#ifdef PLATFORM_WINDOWS
+#include "pbd/semutils.h"
+#else
 #include "pbd/crossthread.h"
+#endif
 
 #include "audio_clock.h"
 #include "ardour_dialog.h"
@@ -73,11 +77,17 @@ class AudioRegionEditor : public RegionEditor
        Gtk::Label _peak_amplitude_label;
        Gtk::Entry _peak_amplitude;
 
+       void signal_peak_thread ();
+       void wait_for_signal ();
        pthread_t _peak_amplitude_thread_handle;
        void peak_amplitude_found (double);
        PBD::Signal1<void, double> PeakAmplitudeFound;
        PBD::ScopedConnection _peak_amplitude_connection;
+#ifdef PLATFORM_WINDOWS
+       PBD::Semaphore m_peak_sem;
+#else
        CrossThreadChannel _peak_channel;
+#endif
 };
 
 #endif /* __gtk_ardour_audio_region_edit_h__ */