X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Faudio_streamview.h;h=295e02d96a11384d5c9082e3883898a0c05456a3;hb=1bddf1bc884feedb5deb5c35f08c7b9730936dae;hp=8d5ab4117c88c3b5d22884fb040d827201b9e866;hpb=ce234f363e95c38fc92728e520bf5ba240a89aa7;p=ardour.git diff --git a/gtk2_ardour/audio_streamview.h b/gtk2_ardour/audio_streamview.h index 8d5ab4117c..295e02d96a 100644 --- a/gtk2_ardour/audio_streamview.h +++ b/gtk2_ardour/audio_streamview.h @@ -23,6 +23,8 @@ #include #include +#include + #include #include "enums.h" #include "simplerect.h" @@ -57,6 +59,9 @@ class AudioStreamView : public StreamView ~AudioStreamView (); void set_waveform_shape (WaveformShape); + WaveformShape get_waveform_shape () const { return _waveform_shape; } + void set_waveform_scale (WaveformScale); + WaveformScale get_waveform_scale () const { return _waveform_scale; } int set_height (gdouble h); int set_samples_per_unit (gdouble spp); @@ -76,13 +81,12 @@ class AudioStreamView : public StreamView private: void setup_rec_box (); - void rec_peak_range_ready (jack_nframes_t start, jack_nframes_t cnt, ARDOUR::Source* src); + void rec_peak_range_ready (nframes_t start, nframes_t cnt, boost::weak_ptr src); void update_rec_regions (); void add_region_view_internal (boost::shared_ptr, bool wait_for_waves); - void remove_region_view (boost::shared_ptr ); + void remove_region_view (boost::weak_ptr ); void remove_audio_region_view (boost::shared_ptr ); - void remove_audio_rec_region (boost::shared_ptr); void undisplay_diskstream (); void redisplay_diskstream (); @@ -102,9 +106,11 @@ class AudioStreamView : public StreamView bool crossfades_visible; list peak_ready_connections; - jack_nframes_t last_rec_peak_frame; - map rec_peak_ready_map; - + nframes_t last_rec_peak_frame; + map, bool> rec_peak_ready_map; + + WaveformShape _waveform_shape; + WaveformScale _waveform_scale; }; #endif /* __ardour_audio_streamview_h__ */