along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#include <cmath>
void
TapeAudioRegionView::init (Gdk::Color& basic_color, bool wfw)
{
- AudioRegionView::init(basic_color, wfw);
+ /* never wait for data: always just create the waves, connect once and then
+ we'll update whenever we need to.
+ */
+
+ AudioRegionView::init(basic_color, false);
/* every time the wave data changes and peaks are ready, redraw */
for (uint32_t n = 0; n < audio_region()->n_channels(); ++n) {
- audio_region()->source(n)->PeaksReady.connect (bind (mem_fun(*this, &TapeAudioRegionView::update), n));
+ audio_region()->audio_source(n)->PeaksReady.connect (bind (mem_fun(*this, &TapeAudioRegionView::update), n));
}
}
TapeAudioRegionView::set_frame_color ()
{
fill_opacity = 255;
- TimeAxisViewItem::set_frame_color ();
+ AudioRegionView::set_frame_color ();
}