X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/38647faa5a6cecd87ed36f8e5660fc5462f38bfc..169d1d643c0ee0c90fa8e393b5298606bbb68cfd:/src/common/mediactrlcmn.cpp?ds=sidebyside diff --git a/src/common/mediactrlcmn.cpp b/src/common/mediactrlcmn.cpp index c72a70ede3..aeadd68451 100644 --- a/src/common/mediactrlcmn.cpp +++ b/src/common/mediactrlcmn.cpp @@ -311,6 +311,8 @@ bool wxMediaCtrl::Load(const wxURI& location) // wxMediaCtrl::Length --> GetDuration // wxMediaCtrl::GetState // wxMediaCtrl::DoGetBestSize +// wxMediaCtrl::SetVolume +// wxMediaCtrl::GetVolume // // 1) Check to see whether the backend exists and is loading // 2) Call the backend's version of the method, returning success @@ -402,6 +404,20 @@ wxSize wxMediaCtrl::DoGetBestSize() const return wxSize(0,0); } +double wxMediaCtrl::GetVolume() +{ + if(m_imp && m_bLoaded) + return m_imp->GetVolume(); + return 0.0; +} + +bool wxMediaCtrl::SetVolume(double dVolume) +{ + if(m_imp && m_bLoaded) + return m_imp->SetVolume(dVolume); + return false; +} + //--------------------------------------------------------------------------- // wxMediaCtrl::DoMoveWindow //