56 #ifndef PLATFORM_WINDOWS
57 , _peak_channel (false)
61 Gtk::HBox* b = Gtk::manage (
new Gtk::HBox);
64 b->pack_start (*Gtk::manage (
new Gtk::Label (
_(
"dB"))),
false,
false);
66 gain_label.set_name (
"AudioRegionEditorLabel");
74 b = Gtk::manage (
new Gtk::HBox);
77 b->pack_start (*Gtk::manage (
new Gtk::Label (
_(
"dBFS"))),
false,
false);
140 #ifdef PLATFORM_WINDOWS
150 #ifdef PLATFORM_WINDOWS
175 s.setf (ios::fixed, ios::floatfield);
PBD::ScopedConnection _peak_amplitude_connection
static void * _peak_amplitude_thread(void *arg)
pthread_t _peak_amplitude_thread_handle
void region_changed(PBD::PropertyChange const &)
static void create_per_thread_pool(const std::string &n, uint32_t nitems)
int receive(char &msg, bool wait=false)
LIBARDOUR_API PBD::PropertyDescriptor< bool > gain
LIBARDOUR_API PBD::PropertyDescriptor< framepos_t > start
void peak_amplitude_thread()
static float accurate_coefficient_to_dB(float coeff)
void signal_peak_thread()
boost::shared_ptr< ARDOUR::AudioRegion > _audio_region
double maximum_amplitude(Progress *p=0) const
gain_t scale_amplitude() const
AudioRegionEditor(ARDOUR::Session *, boost::shared_ptr< ARDOUR::AudioRegion >)
Gtk::Entry _peak_amplitude
void peak_amplitude_found(double)
Gtk::SpinButton gain_entry
void set_scale_amplitude(gain_t)
CrossThreadChannel _peak_channel
static float dB_to_coefficient(float dB)
bool contains(PropertyDescriptor< T > p) const
void gain_adjustment_changed()
Gtk::Label _peak_amplitude_label
Gtk::Adjustment gain_adjustment
LIBARDOUR_API PBD::PropertyDescriptor< float > scale_amplitude
LIBPBD_API int pthread_create_and_store(std::string name, pthread_t *thread, void *(*start_routine)(void *), void *arg)
PBD::Signal1< void, double > PeakAmplitudeFound
LIBPBD_API void pthread_cancel_one(pthread_t thread)
virtual void region_changed(const PBD::PropertyChange &)
LIBARDOUR_API PBD::PropertyDescriptor< framecnt_t > length