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:
parent
72ee3efdc3
commit
b1930f06e5
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,10 @@ AudioBox::AudioBox(wxWindow *parent, agi::Context *context)
|
||||||
SetMinimumSizeY(panel->GetSize().GetHeight());
|
SetMinimumSizeY(panel->GetSize().GetHeight());
|
||||||
|
|
||||||
audioDisplay->Bind(wxEVT_MOUSEWHEEL, &AudioBox::OnMouseWheel, this);
|
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() { }
|
AudioBox::~AudioBox() { }
|
||||||
|
|
Loading…
Reference in a new issue