Actually set the volume/audio zoom to the saved values rather than just setting the slider positions

Originally committed to SVN as r6484.
This commit is contained in:
Thomas Goyne 2012-02-18 00:40:58 +00:00
parent 72ee3efdc3
commit b1930f06e5

View file

@ -136,6 +136,10 @@ AudioBox::AudioBox(wxWindow *parent, agi::Context *context)
SetMinimumSizeY(panel->GetSize().GetHeight());
audioDisplay->Bind(wxEVT_MOUSEWHEEL, &AudioBox::OnMouseWheel, this);
audioDisplay->SetZoomLevel(-HorizontalZoom->GetValue());
audioDisplay->SetAmplitudeScale(pow(mid(1, VerticalZoom->GetValue(), 100) / 50.0, 3));
controller->SetVolume(pow(mid(1, VolumeBar->GetValue(), 100) / 50.0, 3));
}
AudioBox::~AudioBox() { }