added logarithmic option for waveform scaling. added save/restore of rectified and logscale waveform options in session. modified sconstruct to look for certain libs in some common locations, this should be usable controllable but isnt yet. deals better with the libsndfile build when flac is installed.

git-svn-id: svn://localhost/ardour2/trunk@1219 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Jesse Chappell 2006-12-16 05:14:34 +00:00
parent df9bb392ef
commit 732a482f43
15 changed files with 386 additions and 175 deletions

View file

@ -383,7 +383,47 @@ AudioStreamView::set_waveform_shape (WaveformShape shape)
arv->set_waveform_shape (shape);
}
}
WaveformShape
AudioStreamView::get_waveform_shape () const
{
// assumes that the first represents all for our purposes
if (region_views.size() > 0) {
AudioRegionView* const arv = dynamic_cast<AudioRegionView*>(region_views.front());
if (arv) {
if (arv->waveform_rectified())
return Rectified;
}
}
return Traditional;
}
void
AudioStreamView::set_waveform_scale (WaveformScale scale)
{
for (RegionViewList::iterator i = region_views.begin(); i != region_views.end(); ++i) {
AudioRegionView* const arv = dynamic_cast<AudioRegionView*>(*i);
if (arv)
arv->set_waveform_scale (scale);
}
}
WaveformScale
AudioStreamView::get_waveform_scale () const
{
// assumes that the first represents all for our purposes
if (region_views.size() > 0) {
AudioRegionView* const arv = dynamic_cast<AudioRegionView*>(region_views.front());
if (arv) {
if (arv->waveform_logscaled())
return LogWaveform;
}
}
return LinearWaveform;
}
void
AudioStreamView::setup_rec_box ()
{